Handler for monitoring open channel events. Register via NCEngine.addOpenChannelHandler.
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);
Handler for monitoring open channel events. Register via NCEngine.addOpenChannelHandler.