Expand description
socket lifecycle transitions for ProtocolCore
ProtocolCore::connect starts a user attempt and clears replayable intent
ProtocolCore::disconnect ends that attempt and suppresses recovery
ProtocolCore::on_ws_close maps terminal codes to ConnectionState::Closed
while transient closes preserve the connect context for handle_recovery_timer
welcome messages enter through ProtocolCore::on_ws_message
transport readiness enters through ProtocolCore::on_transport_ready
each transition returns ordered Command values for the host
Functionsยง
- handle_
recovery_ ๐timer - retries the saved websocket connection after a recovery delay
- reset_
public_ ๐state - state_
change ๐ - terminal_
close_ ๐cause - Returns the compatibility cause label for a terminal WebSocket close code.