Chat Client Events

All events from the foundation sdk can be listened out for (although most are internally handled)
Here is 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");