Thin wrapper around the WhatsApp WebSocket transport.
The module is responsible for driving the Noise handshake and routing
decrypted nodes back to the owning ExWapp.Session process.
Summary
Functions
Restarts the XML stream after SASL success.
Asks the connection process to send a binary node.
Starts the WebSocket process.
Types
@type options() :: [session: pid(), store: ExWapp.Store.t(), noise: keyword()]
Functions
@spec restart_stream(pid()) :: :ok
Restarts the XML stream after SASL success.
@spec send_node(pid(), ExWapp.Binary.binary_node() | tuple()) :: :ok
Asks the connection process to send a binary node.
@spec start_link(options()) :: GenServer.on_start()
Starts the WebSocket process.