View Source ExLibSRT.Connection.Handler behaviour (ExLibSRT v0.1.3)
Handler behaviour for incoming connection messages.
Summary
Callbacks
Invoked when a connection gets fully established.
Invoked when a new payload arrives.
Invoked when a connection gets disconnected .
Types
Callbacks
@callback handle_connected(connection_id(), stream_id(), state()) :: {:ok, state()} | :stop
Invoked when a connection gets fully established.
Invoked when a new payload arrives.
@callback handle_disconnected(state()) :: :ok
Invoked when a connection gets disconnected .