The ChatEngine.connect() method allows a you to connect to ChatEngine with a uuid that uniquely identifies the User.
ChatEngine.connect('john-UUID');
Listen To $.ready Event
A $.ready event is triggered when a user is successfully connected to ChatEngine. The event payload includes a Me object that represents the User that has been connected.
ChatEngine.on('$.ready', (payload) => {
let me = payload.me;
console.log(me.uuid)
});
When the user connects to ChatEngine, it joins a global chat accessed via ChatEngine.global. The user also automatically joins its own direct chat called me.direct and feed chat called me.feed . Refer to Channel Topology.
See ChatEngine.connect() for more information.