An object that represents a single WebSocket connection.
The object can be used to send messages and close the
connection, and to receive notifications when messages
are received or the connection is closed.
Arguments
Details
WebSocket objects should never be created directly. They
are obtained by passing an onWSOpen function to
startServer.