You can update state on the Me
object by calling the me.update()
method. When you update user state, another $.state
event is triggered to other users in the global chat room.
me.update({
name: 'John Doe',
color: 'green'
});
You can update state on the Me
object by calling the me.update()
method. When you update user state, another $.state
event is triggered to other users in the global chat room.
me.update({
name: 'John Doe',
color: 'green'
});