WebSocketClient

Types

Link copied to clipboard
data class CloseInfo(val code: Int, val message: String?, val wasClean: Boolean)
Link copied to clipboard

Properties

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
val url: String

Functions

Link copied to clipboard
fun close(info: WsCloseInfo)
open fun close(code: Int = 1000, reason: String = "OK")
Link copied to clipboard
fun messageChannel(limit: Int = Channel.UNLIMITED): Channel<Any>
Link copied to clipboard
fun messageChannelBinary(limit: Int = Channel.UNLIMITED): Channel<Any>
Link copied to clipboard
fun messageChannelString(limit: Int = Channel.UNLIMITED): Channel<Any>
Link copied to clipboard
open suspend fun send(message: ByteArray)
open suspend fun send(message: String)