-
Notifications
You must be signed in to change notification settings - Fork 0
Home
Mihai Oprescu edited this page Apr 18, 2015
·
2 revisions
Welcome to the NinePenguins wiki!
Some user stories to keep track of stuff easier..
Adding user to lobby
(client) User opens site
(client) Random guest id/username is assigned
- ( stored as NineCache.userData, .userType (facebook/guest), .username ** will make object to store all this data **)
(client) Send message to server: 'addUserToLobby', { username: NineCache.username, userid: NineCache.userData.id}
(server) Check to see if socket id is already present in the chat list - if it is, update the username and user id, if required - else add it to the list
(server) Send back updated user chat list: 'updateLobbyUserList', { chatUsersList: .. }