OptionaleventAdditional EventSource event names to subscribe to
OptionalheartbeatTimeout in milliseconds to detect heartbeat inactivity
OptionalmaxMaximum number of reconnect attempts
OptionalonCalled when a WebSocket connection closes
OptionalonCalled when an error occurs
OptionalonCalled with every registered connection message, including custom SSE event types
OptionalonCalled when a message is received
OptionalonCalled when the connection opens
OptionalonCalled when a decoded message uses the realtime protocol shape.
OptionalonCalled when a reconnect attempt happens
Optionalprotocols
Optional WebSocket subprotocols
OptionalretryDelay between reconnect attempts in milliseconds
OptionaltransformFunction to transform incoming messages
WebSocket-specific configuration