ExWapp.Session.InboundRouter (ExWapp v0.1.2)

Copy Markdown View Source

Decouples transport ingestion from session node processing.

Connection events may arrive in bursts; routing through this process keeps the transport callback lightweight and makes inbound handling easier to instrument.

Summary

Functions

Returns a specification to start this module under a supervisor.

Types

t()

@type t() :: %ExWapp.Session.InboundRouter{session: pid() | nil}

Functions

child_spec(init_arg)

Returns a specification to start this module under a supervisor.

See Supervisor.

route(pid, node)

@spec route(pid(), ExWapp.Binary.Node.t()) :: :ok

start_link(opts)

@spec start_link(keyword()) :: GenServer.on_start()