Skip to content

Instantly share code, notes, and snippets.

@bjartwolf
Created March 7, 2013 14:29
Show Gist options
  • Save bjartwolf/5108406 to your computer and use it in GitHub Desktop.
Save bjartwolf/5108406 to your computer and use it in GitHub Desktop.
realtime for blog
module.exports = function (io) {
io.of('/SPio').on('connection', function (client) {
client.on('moveEvent', function (moveEvent) {
client.broadcast.emit('moveEvent', moveEvent);
});
});
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment