ExWapp.Message.Handler.Inbound (ExWapp v0.1.2)

Copy Markdown View Source

Coordinates the inbound message pipeline after a <message> node reaches a session.

Sender resolution, decryption, canonical content decoding, synchronization, persistence, publication, and receipt generation are delegated to focused modules. Wrappers therefore receive normalized ExWapp.Message.Content values instead of interpreting wire payloads themselves.

Summary

Functions

Processes an inbound message node and returns updated state plus protocol actions.

Records device JIDs advertised by a notification in the session cache.

Functions

handle_message(node, session, state)

@spec handle_message(ExWapp.Binary.Node.t(), pid(), map()) :: {:ok, map(), [term()]}

Processes an inbound message node and returns updated state plus protocol actions.

persist_notification_devices(state, content)

@spec persist_notification_devices(map(), term()) :: :ok

Records device JIDs advertised by a notification in the session cache.