DelayReconnect

class DelayReconnect(val delay: <Error class: unknown class> = 5.seconds) : SocketReconnectPolicy

Implementation of SocketReconnectPolicy that always uses the same delay.

See also

Constructors

Link copied to clipboard
constructor(delay: <Error class: unknown class> = 5.seconds)

Properties

Link copied to clipboard
val delay: <Error class: unknown class>

Functions

Link copied to clipboard
open override fun getReconnectDelay(): <Error class: unknown class>

The delay to use before attempting to reconnect or null if no new attempt should be made.

Link copied to clipboard
open fun notifyConnected()

Notify about a successful connection attempt.

Link copied to clipboard

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.

Link copied to clipboard
open fun notifyUpdated()

Notify about changed credentials. This means a new connection attempt will be made automatically.