WebSocket
open external class WebSocket(url: String, protocols: String = definedExternally) : EventTarget(source)
Provides the API for creating and managing a WebSocket connection to a server, as well as for sending and receiving data on the connection.
Constructors
Properties
Link copied to clipboard
Returns a string that indicates how binary data from the WebSocket object is exposed to scripts:
Link copied to clipboard
Returns the number of bytes of application data (UTF-8 text and binary data) that have been queued using send() but not yet been transmitted to the network.
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Returns the extensions selected by the server, if any.
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Returns the state of the WebSocket object's connection. It can have the values described below.