WebSocket
Socket connections and event lifecycle.
WebSocket.connect yields while opening a ws:// or wss:// connection.
- The returned object has methods to send and close, plus message and close signals.
- Keep a reference to the socket and close it when finished.
Functions
| Function | Purpose |
|---|---|
| WebSocket.connect | Connects to a WebSocket server. |
