WebSocket

Functions

Link copied to clipboard
abstract fun close(code: Int, reason: String)

Closes the websocket gracefully and asynchronously.

Link copied to clipboard
abstract fun send(data: ByteArray)

Sends a binary message asynchronously.

abstract fun send(text: String)

Sends a text message asynchronously.