Skip to main content
Emitted when the WebSocket connection to the SIP server is lost or closed.

Category

Connection

Callback Parameters

None.

Example

client.on('disconnected', () => {
  console.log('Disconnected from SIP server');
});

More Information

  • connected — fires when the connection is established
  • disconnect — the method that closes the connection
  • destroy — disconnect and release all resources