Created
May 11, 2018 07:50
-
-
Save knrt10/497b03eebd7d641260fa9d76eab38d18 to your computer and use it in GitHub Desktop.
emit events when client joins
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Emitting client info on joining the room | |
_socket.on('room', function (val) { | |
_socket.emit('join', {roomName: val.value, username: data.username, number: data.number, randomNumber: data.randomNumber}) | |
}) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment