Skip to main content
Emitted when the WebSocket connection to the SIP server is established. This event fires before SIP registration โ€” wait for the registered event before making calls.

Category

Connection

Callback Parameters

None.

Example

client.on('connected', () => {
  console.log('WebSocket connection established');
});

More Information

  • connecting โ€” fires when the connection starts
  • registered โ€” fires when SIP registration succeeds
  • disconnected โ€” fires when the connection is lost