Get state for online users

You can also get state for online users by calling User.state .

let joe = ChatEngine.users['joe-UUID'];
console.log(joe.state);