Emitted when a new viewer joins this interaction.
The payload identifies the agent who has entered the viewer role. Call Interaction.getViewers to retrieve the updated viewer list.
interaction.subscribe(InteractionEventType.INTERACTION_VIEWER_ADDED, (event) => { console.log("Viewer joined:", event.payload.viewerId);}); Copy
interaction.subscribe(InteractionEventType.INTERACTION_VIEWER_ADDED, (event) => { console.log("Viewer joined:", event.payload.viewerId);});
The event type identifier.
The event payload containing event-specific data.
The timestamp when the event occurred.
Emitted when a new viewer joins this interaction.
The payload identifies the agent who has entered the viewer role. Call Interaction.getViewers to retrieve the updated viewer list.
Example
See