Skip to main content

connect

Summary

Initiate a WebSocket connection to the server.

Signature

Parameters

No parameters.

Returns

Type:Promise<void> Initiate a WebSocket connection to the server.

Remarks

Connects to ws[s]://<ip>:<port>. Resolves as soon as the connection attempt is dispatched (the socket may not be fully open yet — check isConnected).