RawSocketWebSocketClient

class RawSocketWebSocketClient(val coroutineContext: CoroutineContext, val client: AsyncClient, val urlUrl: URL, val protocols: List<String>? = null, debug: Boolean = false, val origin: String? = null, val key: String = DEFAULT_WSKEY, val headers: Http.Headers = Http.Headers(), val masked: Boolean = true, val random: Random = Random) : WebSocketClient

Constructors

Link copied to clipboard
constructor(coroutineContext: CoroutineContext, client: AsyncClient, urlUrl: URL, protocols: List<String>? = null, debug: Boolean = false, origin: String? = null, key: String = DEFAULT_WSKEY, headers: Http.Headers = Http.Headers(), masked: Boolean = true, random: Random = Random)

Types

Link copied to clipboard
object Companion

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
val key: String
Link copied to clipboard
val masked: Boolean = true
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 origin: String? = null
Link copied to clipboard
val port: Int
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
val url: String
Link copied to clipboard
val urlUrl: URL

Functions

Link copied to clipboard
open override fun close(code: Int, reason: String)
fun close(info: WsCloseInfo)
Link copied to clipboard
suspend fun internalConnect()
Link copied to clipboard
suspend fun internalReadPackets()
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
suspend fun readWsFrame(): WsFrame
Link copied to clipboard
suspend fun readWsFrameOrNull(): WsFrame?
Link copied to clipboard
open suspend override fun send(message: ByteArray)
open suspend override fun send(message: String)
Link copied to clipboard
suspend fun sendWsFrame(frame: WsFrame, random: Random = this.random)