Options
All
  • Public
  • Public/Protected
  • All
Menu

Handler for monitoring open channel events. Register via NCEngine.addOpenChannelHandler.

example
const handler = new OpenChannelHandler({
onEntered({ channelId, response }) {
console.log(`Entered channel ${channelId}, participants: ${response.participantCount}`);
},
onParticipantChanged({ channelId, participantCount, actions }) {
console.log(`Participants changed in ${channelId}, count: ${participantCount}`);
},
});
NCEngine.addOpenChannelHandler('unique-id', handler);

Hierarchy

Index

Constructors

Constructors