OptionaleventOptionalheartbeatTimeout 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 reconnect attempt happens
OptionalretryDelay between reconnect attempts in milliseconds
OptionaltransformFunction to transform incoming messages
Additional EventSource event names to subscribe to