WebSocketConnection

Constructors

Link copied to clipboard
constructor(webSocketFactory: WebSocket.Factory, serverUrl: String, headers: List<HttpHeader>)

Functions

Link copied to clipboard
open fun close()
Link copied to clipboard
open fun isOpen(): Boolean
Link copied to clipboard
open fun open()
Link copied to clipboard
@Nullable
open fun receive(timeoutMs: Long): String
Link copied to clipboard
open fun send(message: String)
open fun send(message: ByteString)