OffBroadwayWebSocket.Producer (off_broadway_websocket v0.1.0)
A GenStage producer that manages WebSocket connections using the gun library.
This module establishes a WebSocket connection, and manages message dispatching based on demand. It monitors the WebSocket connection with ping/pong messages and terminates connection when timeouts occur.
Summary
Functions
Closes the connection and schedules a reconnect on WebSocket timeout.
Functions
@spec dispatch_events(OffBroadwayWebSocket.State.t(), non_neg_integer()) :: {atom(), list(), OffBroadwayWebSocket.State.t()}
Closes the connection and schedules a reconnect on WebSocket timeout.