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.
Types
Functions
Extensions
Link copied to clipboard
fun WebSocketClient.withAutoReconnect(config: ReconnectConfig): WebSocketClient
Content copied to clipboard
fun WebSocketClient.withAutoReconnect(configure: ReconnectConfigBuilder.() -> Unit): WebSocketClient
Content copied to clipboard
fun WebSocketClient.withAutoReconnect(maxAttempts: Int = DEFAULT_MAX_ATTEMPTS, delayStrategy: RetryDelayStrategy = DEFAULT_DELAY_STRATEGY): WebSocketClient
Content copied to clipboard
Returns a new WebSocketClient that automatically reconnects on web socket errors using this client.