Skip to content

Instantly share code, notes, and snippets.

@wemakeweb
Last active August 29, 2015 14:10
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save wemakeweb/f18f3b4fd262318a31a8 to your computer and use it in GitHub Desktop.
Save wemakeweb/f18f3b4fd262318a31a8 to your computer and use it in GitHub Desktop.
emit('room:join', roomId)
emit('room:message', msgText)
emit('room:leave')
on('authError')
on('room:join', function(joinedUserId)
on('room:leave', function(leftUserId)
on('room:message', function(messageObj)
prof flow:
1. Room create über REST Api, gibt roomId zurück *einmalig*
2. emit('room:open', roomId)
3. emit('room:join', roomId)
4. emit('room:close')
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment