-
Notifications
You must be signed in to change notification settings - Fork 55
UserAPI
Users are created automatically by Cloak on new connections and can be retrieved with cloak.getUsers()
or room.getMembers()
Send a message to this user. The message handler on the client is called if there is one for this message name.
A unique ID for this user
Defaults to "Nameless User"
An object for you to store custom data for each user. Initially it is {} and no data is added automatically by cloak.
Returns true
if the user is currently connected, otherwise false
Enter a room
User leaves the room they're currently in, if they are in one. They return to the lobby if the server is configured to autoJoinLobby
(default is true)
Get the Room that this user is in.
User is kicked from any rooms they're in and is disconnected.
All documentation on this wiki is licensed under a Creative Commons Attribution 3.0 Unported License. To attribute simply link to this wiki.