Callback parameters for monitoring connection status changes. Implement ConnectionStatusHandlerParams.onConnectionStatusChanged to react to ConnectionStatus updates (and optional code when the engine provides one).
code
const handler = new ConnectionStatusHandler({ onConnectionStatusChanged(event) { console.log('Connection status:', event.status, 'code:', event.code); },});NCEngine.addConnectionStatusHandler('my-handler', handler);
Callback parameters for monitoring connection status changes. Implement ConnectionStatusHandlerParams.onConnectionStatusChanged to react to ConnectionStatus updates (and optional
codewhen the engine provides one).