Expand description
socket lifecycle transitions for ProtocolCore
connect starts a user attempt and clears replayable intent
disconnect ends that attempt and suppresses recovery
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
Enumsยง
- Lifecycle
Close ๐Cause - host-visible reason attached to a terminal lifecycle state change
Functionsยง
- connect ๐
- starts a fresh connection attempt from an inactive or recovering state
- disconnect ๐
- ends the current user attempt on purpose
- handle_
recovery_ ๐timer - retries the saved websocket connection after a recovery delay
- lifecycle_
close_ ๐cause_ label - returns the compatibility label exposed through
EmitStateChange - on_
ws_ ๐close - handles websocket closure after a user was already in flight
- reset_
public_ ๐state - state_
change ๐ - terminal_
close_ ๐cause - maps terminal websocket close codes to host-visible lifecycle causes