JsWebSocketClient

class JsWebSocketClient(val url: String, val protocols: List<String>?, val DEBUG: Boolean, val headers: Http.Headers) : WebSocketClient

Constructors

Link copied to clipboard
constructor(url: String, protocols: List<String>?, DEBUG: Boolean, headers: Http.Headers)

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
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
val url: String

Functions

Link copied to clipboard
open override fun close(code: Int, reason: String)
fun close(info: WsCloseInfo)
Link copied to clipboard
suspend fun init()
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 override fun send(message: ByteArray)
open suspend override fun send(message: String)