CobrowseVoice plugin
The CobrowseVoice plugin exposes commands and events for Co-browse.
CobrowseVoice plugin events
CobrowseVoice.error
When there is an error when entering join code in Co-browse connect screen, this event is published with the raw response from Co-browse service.
Genesys("subscribe", "CobrowseVoice.error", e => {
console.log("Co-browse error", e.data);
});
CobrowseVoice.sessionStarted
Published when a user successfully accepts a Co-browse offer from an agent. Also on page refresh or navigation, if an ongoing session continues.
Data:
Property | Description |
joinCode | Co-browse session join code, a string of digits |
sessionId | Co-browse session ID |
Genesys("subscribe", "CobrowseVoice.sessionStarted", e => {
console.log("Co-browse session started", e.data.joinCode, e.data.sessionId);
});
CobrowseVoice.sessionEnded
Published when a Co-browse session ends. It can be ended by user or agent or via a timeout or error - this event is published in all cases.
Genesys("subscribe", "CobrowseVoice.sessionEnded", () => {
console.log("Co-browse session ended");
});