Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface OpenChannelHandlerParams

Callback parameters for monitoring open channel events such as entering/exiting, metadata changes, participant changes, and mute/ban events.

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('my-open-handler', handler);

Hierarchy

  • OpenChannelHandlerParams

Index

Methods

  • Called when the user successfully enters an open channel (including auto-rejoin after reconnection)

    Parameters

    Returns void

  • Called when entering an open channel fails (including auto-rejoin after reconnection)

    Parameters

    Returns void