WebSocketClient
Hierarchy
- BaseObject
- WebSocketClient
Index
Constructors
Properties
Methods
Constructors
constructor
Properties
publicautoReconnect
publicreadonlyid
publicreadonlyisRemote
publicperMessageDeflate
publicpingInterval
Optional heartbeat, sent every x seconds when there isn’t any traffic.
publicreadonlyreadyState
publicreadonlyrefCount
Returns the ref count of the entity.
publicreadonlyremoteID
The serverside id of this entity.
publicreadonlytype
Type of the object.
publicurl
publicreadonlyvalid
Object usability.
Methods
publicaddSubProtocol
Adds a sub protocol to the websocket.
publicdeleteMeta
publicdestroy
Removes the object from the world.
publicgetEventListeners
Gets all the listeners for the specified websocket event.
publicgetMeta
Type parameters
- K: string
publicgetMetaDataKeys
publicgetSubProtocols
Gets all added sub protocols.
publicgetSyncedMeta
Gets a value using the specified key.
Type parameters
- K: string
publicgetSyncedMetaKeys
publichasMeta
publichasSyncedMeta
Determines whether contains the specified key.
publicoff
publicon
publicsend
Sends the specified message to the websocket server.
publicsetExtraHeader
Sets the specified header to the specified value.
publicsetMeta
Type parameters
- K: string
publicstart
Starts the websocket connection.
publicstop
Stops the websocket connection.
publicstaticgetByID
Retrieves the websocketclient from the pool.
Whether this entity was created clientside or serverside. (Clientside = false, Serverside = true).