WsRequest

abstract class WsRequest(val uri: String, val headers: Http.Headers, val scope: CoroutineScope) : HttpServer.BaseRequest

Constructors

Link copied to clipboard
constructor(uri: String, headers: Http.Headers, scope: CoroutineScope)

Properties

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open override var extra: ExtraType
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
val scope: CoroutineScope
Link copied to clipboard
val uri: String

Functions

Link copied to clipboard
open fun accept(headers: Http.Headers)
Link copied to clipboard
fun anyMessageStream(): ReceiveChannel<Any>
Link copied to clipboard
fun binaryMessageStream(): ReceiveChannel<ByteArray>
Link copied to clipboard
abstract fun close()
Link copied to clipboard
abstract fun onBinaryMessage(handler: suspend (ByteArray) -> Unit)
Link copied to clipboard
abstract fun onClose(handler: suspend (WsCloseInfo) -> Unit)
Link copied to clipboard
abstract fun onStringMessage(handler: suspend (String) -> Unit)
Link copied to clipboard
abstract fun reject()
Link copied to clipboard
abstract fun send(msg: ByteArray)
abstract fun send(msg: String)
Link copied to clipboard
fun sendSafe(msg: String)
Link copied to clipboard
fun stringMessageStream(): ReceiveChannel<String>