Created
August 31, 2012 17:53
-
-
Save donflopez/3556503 to your computer and use it in GitHub Desktop.
Socket.io for app.js
This file contains 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
io.sockets.on('connection', function(socket){ | |
socket.emit('connected'); //Evento creado por nosotros se puede llamar 'pepito' | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment