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 |
| 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.
window.addEventListener('fullview:callRequested', event => { console.log('---> call requested', event.detail.callId); }); |
| The cobrowsing call was accepted by the customer.
Example: window.addEventListener('fullview:callAccepted', event => { console.log('---> call accepted', event.detail.callId); }); |
| The cobrowsing call was denied by the customer.
Example: window.addEventListener('fullview:callDenied', event => { console.log('---> call denied', event.detail.callId); }); |
| 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); }); |
| 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'); }); |
| 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'); }); |
| 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'); }); |
| 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'); }); |