Created
December 3, 2012 20:59
-
-
Save crtr0/4197978 to your computer and use it in GitHub Desktop.
Connects to the socket.io server and emit a message
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
var socket = io.connect(); | |
socket.on('connect', function() { | |
console.log("Connected, lets sign-up for updates about votes for this event"); | |
socket.emit('event', '{{ shortname }}'); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment