Wearable Only
Camera Kit
Protected
constructorReadonly
Wearable Only
Camera Kit
dataThe data received from the server. For binary messages, this is of type Blob. For text messages, this is a string.
Readonly
Wearable Only
Camera Kit
typeThe type of the data received, text
or binary
, returned as a string.
Returns the name of this object's type.
Returns true if the object matches or derives from the passed in type.
Returns true if this object is the same as other
. Useful for checking if two references point to the same thing.
Event type for WebSocket message events. This event fires when a message has been received from the server. Listen for this event by using
addEventListener
withmessage
, or by setting theonmessage
property.Example