OffBroadwayWebSocket.Producer (off_broadway_websocket v0.0.3)

A GenStage producer that manages WebSocket connections using the gun library.

This module establishes a WebSocket connection, handles reconnections upon disconnection, and manages message dispatching based on demand. It monitors the WebSocket connection with ping/pong messages and schedules reconnection attempts in case of timeout or disconnection.

Summary

Functions

Closes the connection and schedules a reconnect on WebSocket timeout.

Functions

dispatch_events(state, incoming_demand)

on_ws_timeout(state)

Closes the connection and schedules a reconnect on WebSocket timeout.

start_link(opts)