WebSocket
Constructors
Properties
binaryType
var binaryType: BinaryTypebufferedAmount
open val bufferedAmount: Numberextensions
open val extensions: Stringonmessage
var onmessage: ((MessageEvent) -> dynamic)?protocol
open val protocol: StringreadyState
open val readyState: Shorturl
open val url: StringFunctions
close
fun close(
code: Short = definedExternally,
reason: String = definedExternally)send
fun send(data: String)fun send(data: Blob)fun send(data: ArrayBuffer)fun send(data: ArrayBufferView)Companion Object Properties
CLOSED
val CLOSED: ShortCLOSING
val CLOSING: ShortCONNECTING
val CONNECTING: ShortOPEN
val OPEN: Short