Created
December 29, 2012 19:36
-
-
Save thebadger412/4408877 to your computer and use it in GitHub Desktop.
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('http://your ip address here..'); | |
socket.on('connected', function(data) { | |
console.log('Connected, this is what I received : ', data); | |
//you could then emit something here for the server to receive like socket.emit("blah", "helloworld") -hello world is a string of data you are passing the sever here.. | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment