-
Notifications
You must be signed in to change notification settings - Fork 55
ClientConfiguration
Greg edited this page May 6, 2015
·
15 revisions
-
messages
- custom events to handle messages from server
-
serverEvents
-
connecting
(trying to connect, will be followed bybegin
,resume
, orerror
) -
begin
(the first time you connect only) -
resume
(after reconnection only) -
disconnect
(any disconnection) -
end
(cloak shut down, either due to unrecoverable error orcloak.end()
) -
error
(cloak error such as connection timeout. argument will have error information) -
joinedRoom
(you join a room. Argument is room name.) -
leftRoom
(you leave a room. Argument is room name.) -
roomMemberJoined
(someone joined the room you're in. Argument is an object with the user'sid
andname
) -
roomMemberLeft
(someone left the room you're in. Argument is an object with the user'sid
andname
) -
lobbyMemberJoined
(someone joined the lobby you're in. Argument is an object with the user'sid
andname
) -
lobbyMemberLeft
(someone left the lobby you're in. Argument is an object with the user'sid
andname
) -
roomCreated
(sent to lobby members if server is configured to notifyRoomChanges. Argument is the room count.) -
roomDeleted
(sent to lobby members if server is configured to notifyRoomChanges. Argument is the room count.)
-
-
timerEvents
- See TimerAPI
-
initialData
- Sent to server to initialize
user.data
. See user.data
- Sent to server to initialize
-
socketIo
- You can pass Socket.IO client options here.
All documentation on this wiki is licensed under a Creative Commons Attribution 3.0 Unported License. To attribute simply link to this wiki.