ReadonlylocalThe local address bound to this socket.
ReadonlyonSignal fired when the socket successfully establishes a connection.
ReadonlyonSignal fired when data is received on the socket, carrying the received buffer.
ReadonlyonSignal fired when the remote end signals the end of transmission.
ReadonlyonSignal fired when a socket error occurs.
ReadonlyremoteThe remote address this socket is connected to.
Closes the socket connection gracefully.
StaticcreateCreates a new WebSocket instance.
Destroys the socket and releases all associated resources immediately.
Returns the name of this object's type.
Returns true if the object is of the specified type.
Returns true if this object refers to the same instance as the given object.
Sends binary or text data over the WebSocket connection, returning the number of bytes sent.
WebSocket client for establishing and communicating over WebSocket connections in Lens Studio plugins.