WebSocket
Constructors
Properties
binaryType
var binaryType: BinaryType
bufferedAmount
open val bufferedAmount: Number
extensions
open val extensions: String
onmessage
var onmessage: ((MessageEvent) -> dynamic)?
protocol
open val protocol: String
readyState
open val readyState: Short
url
open val url: String
Functions
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: Short
CLOSING
val CLOSING: Short
CONNECTING
val CONNECTING: Short
OPEN
val OPEN: Short