Created
April 1, 2015 03:24
-
-
Save giobyte8/931a6bbca6ca870d477d to your computer and use it in GitHub Desktop.
Parte 3 | Creando un sistema de chat sobre NodeJS con Socket.IO, ExpressJS, MongoDB, Foundation y Openshift
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
socket.on('chat message', function(msg) { | |
messagesDAO.addMessage(msg.username, Date.now(), msg.message, function (err, nmsg) { | |
io.emit('chat message', msg); | |
}); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment