ExWapp.MessageHandler (ExWapp v0.1.2)

Copy Markdown View Source

High-level router for incoming WhatsApp nodes.

The heavy parsing, decryption, sync ingestion, and receipt logic now lives in ExWapp.Message.Handler.* modules under lib/ex_wapp/message/handler/. This module stays focused on dispatching node tags to the right domain handler.

Summary

Functions

Handles an incoming node and updates session state.

Types

handler_result()

@type handler_result() :: {:ok, map()} | {:ok, map(), [term()]} | {:error, term()}

Functions

handle_node(node, session, state)

@spec handle_node(ExWapp.Binary.Node.t(), pid(), map()) :: handler_result()

Handles an incoming node and updates session state.