Chat client events

All events from the foundation SDK can be listened out for, although most are internally handled.

Here’s an example of listening for a Profile updated event:

Subscribe to an event

sdk.on("profileUpdated", function (event) {
    console.log("profileUpdated", event);
});

Unsubscribe from an event

sdk.off("profileUpdated");