ProtectedconstructorSnap HiddenReadonlyaddressThe address string the server is currently bound to.
ReadonlyonSignal fired when a new client socket connects to the server.
ReadonlyonSignal fired when a server error occurs, passing an error code.
ReadonlyportCloses the server and stops accepting new connections.
StaticcreateCreates and returns a new WebSocketServer instance.
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.
Starts listening for incoming connections on the specified address; returns true if successful.
WebSocket server that listens on a local address and accepts incoming client connections from web content or other plugins.