OffBroadwayWebSocket.Producer (off_broadway_websocket v0.2.2)

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

dispatch_events(state)

@spec dispatch_events(OffBroadwayWebSocket.State.t()) ::
  {atom(), list(), OffBroadwayWebSocket.State.t()}

start_link(opts)