Web Socket
open external class WebSocket(url: String, protocols: dynamic) : EventTarget
Content copied to clipboard
Exposes the JavaScript WebSocket to Kotlin
Constructors
Types
Functions
add Event Listener
Link copied to clipboard
fun addEventListener(type: String, callback: (Event) -> Unit?, options: dynamic = definedExternally)
Content copied to clipboard
fun addEventListener(type: String, callback: EventListener?, options: dynamic = definedExternally)
Content copied to clipboard
dispatch Event
Link copied to clipboard
remove Event Listener
Link copied to clipboard
fun removeEventListener(type: String, callback: (Event) -> Unit?, options: dynamic = definedExternally)
Content copied to clipboard
fun removeEventListener(type: String, callback: EventListener?, options: dynamic = definedExternally)
Content copied to clipboard
send
Link copied to clipboard
Properties
binaryType
Link copied to clipboard
bufferedAmount
Link copied to clipboard
extensions
Link copied to clipboard
onmessage
Link copied to clipboard
readyState
Link copied to clipboard