Skip to main content
Listening for Fullview events
Alex avatar
Written by Alex
Updated over 2 weeks 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); });

fullview:supportRequested

A customer triggered a request for a cobrowsing call (inbound cobrowsing request)

Example:

window.addEventListener('fullview:supportRequested', event => { console.log('---> inbound cobrowsing requested by customer'); });

fullview:supportRequestCancelledByCustomer

A customer cancels the triggered inbound cobrowsing request , before an agent got the chance to accept.

Example:

window.addEventListener('fullview:supportRequestCancelledByCustomer', event => { console.log('---> inbound cobrowsing request canceled by customer'); });

fullview:supportRequestCancelledByAgent

An agent declined an inbound cobrowsing request made by a customer.

Example:

window.addEventListener('fullview:supportRequestCancelledByAgent', event => { console.log('---> inbound cobrowsing request canceled by agent'); });

fullview:supportRequestTaken

An agent accepted an inbound cobrowsing request and started the cobrowsing call with the customer.

Example:

window.addEventListener('fullview:supportRequestTaken', event => { console.log('---> inbound cobrowsing request accepted by agent'); });

Did this answer your question?