#
Events
How to
sample
The Web-client is packaged with an event emitter and a set of standard events. You can subscribe to any of the standard events with a callback.
const webClient = new IpscapeWebClient();
webClient.on(webClient.events.agentLogin, (response) => {
console.log('Agent logged on', response);
});
The response is returned in an object passed to the callback method. The response object will contain the following fields: