AcediaDocumentation

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

FunctionPurpose
WebSocket.connectConnects to a WebSocket server.

On this page