SocketReconnectPolicy
The SocketReconnectPolicy describes the behavior for reconnecting WebSockets when there are active subscriptions. It will be notified about specific events and asked for a delay when the socket is disconnected but still has active subscriptions.
Inheritors
Types
Implementation of SocketReconnectPolicy that always uses the same delay.
Implementation of SocketReconnectPolicy that grows the delay exponentially, starting with minDelay until the maximum of maxDelay.
Functions
The delay to use before attempting to reconnect or null if no new attempt should be made.
Notify about a successful connection attempt.
Notify about a disconnect event while there are active subscriptions. This is always called before getReconnectDelay. This function is not called when the WebSocket is disconnected without active subscriptions.
Notify about changed credentials. This means a new connection attempt will be made automatically.