Web Socket Client
A web socket client.
The client is used to connect to the server and create a WebSocketConnection. Then, most of the interactions are done through the WebSocketConnection until it is closed.
The same client can be reused to start multiple sessions, unless specified otherwise by the implementation.
Functions
Link copied to clipboard
fun WebSocketClient.withAutoReconnect(configure: ReconnectConfigBuilder.() -> Unit): WebSocketClient
fun WebSocketClient.withAutoReconnect(maxAttempts: Int = DEFAULT_MAX_ATTEMPTS, delayStrategy: RetryDelayStrategy = DEFAULT_DELAY_STRATEGY): WebSocketClient
Returns a new WebSocketClient that automatically reconnects on web socket errors using this client.