Listening for Fullview events
Emma avatar
Written by Emma
Updated over a week ago

Fullview offers a number of custom events that you can listen to and build custom logic inside your own codebase.

Fullview dispatches the following custom events on window , each of these events containing a callId in the detail field.

Event name

Description

fullview:callRequested

This event is emitted when the agent initiates a request to start a cobrowsing session.

❗️If your customer opened your web application in multiple browser tabs, the event is emitted once per opened tab.


Example:

window.addEventListener('fullview:callRequested', event => { console.log('---> call requested', event.detail.callId); });

fullview:callAccepted

The cobrowsing call was accepted by the customer.

Example:

window.addEventListener('fullview:callAccepted', event => { console.log('---> call accepted', event.detail.callId); });

fullview:callDenied

The cobrowsing call was denied by the customer.

Example:

window.addEventListener('fullview:callDenied', event => { console.log('---> call denied', event.detail.callId); });

fullview:callEnded

The cobrowsing call was ended either by the customer or the agent.

Example:

window.addEventListener('fullview:callEnded', event => { console.log('---> call ended', event.detail.callId); });

Did this answer your question?