Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface ConnectionStatusHandlerParams

Callback parameters for monitoring connection status changes. Implement ConnectionStatusHandlerParams.onConnectionStatusChanged to react to ConnectionStatus updates (and optional code when the engine provides one).

example
const handler = new ConnectionStatusHandler({
onConnectionStatusChanged(event) {
console.log('Connection status:', event.status, 'code:', event.code);
},
});
NCEngine.addConnectionStatusHandler('my-handler', handler);

Hierarchy

  • ConnectionStatusHandlerParams

Index

Methods