WebSocket
Properties
Link copied to clipboard
A string controlling how incoming binary messages are exposed on the message event. Can be nodebuffer, arraybuffer, or blob. The default is nodebuffer.
Link copied to clipboard
An Integer representing the number of bytes of application data that have been queued via send() but not yet handed off to the network.
Link copied to clipboard
A string containing the extensions negotiated by the server (for example permessage-deflate).
Link copied to clipboard
An Integer representing the current state of the connection: one of WebSocket.CONNECTING (0), WebSocket.OPEN (1), WebSocket.CLOSING (2), or WebSocket.CLOSED (3).
Functions
Link copied to clipboard
Link copied to clipboard
Enqueues data to be transmitted to the server. Throws an InvalidStateError DOMException if readyState is CONNECTING.
Link copied to clipboard
open external fun <T : Event> when(type: EventType<T>, options: ObservableEventListenerOptions?): Observable<T>