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 tows[s]://<ip>:<port>. Resolves as soon as the connection attempt is dispatched (the socket may not be fully open yet — check isConnected).