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

Copy Markdown View Source

Handles server notifications and translates them into session actions.

Notifications are acknowledged here. Notifications that invalidate local state also emit a focused action so the session can refresh that state and notify wrappers without making them parse protocol nodes.

Summary

Functions

handle_notification(node, session, state)

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