OffBroadwayWebSocket.Producer (off_broadway_websocket v0.0.6)

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

dispatch_events(state, incoming_demand)

on_ws_timeout(state)

Closes the connection and schedules a reconnect on WebSocket timeout.

start_link(opts)