sip.js.sessionmanagerdelegate.onserverdisconnect.md

October 20, 2022 ยท View on GitHub

Home > sip.js > SessionManagerDelegate > onServerDisconnect

SessionManagerDelegate.onServerDisconnect() method

Called when user is no longer connected.

Signature:

onServerDisconnect?(error?: Error): void;

Parameters

ParameterTypeDescription
errorErrorAn Error if server caused the disconnect. Otherwise undefined.

Returns:

void

Remarks

Callback for handling user becomes disconnected.

Contents

  1. 1SessionManagerDelegate.onServerDisconnect() method
  2. 2Parameters
  3. 3Remarks