Created
August 20, 2014 22:55
-
-
Save kid-icarus/7d20fa118ae06bd008ac to your computer and use it in GitHub Desktop.
asf
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 io = require('socket.io-client') | |
console.log(io) | |
socket = io.connect('https://chat.meatspac.es:443') | |
socket.on('connect', function(){ | |
console.log('connected') | |
socket.on('message', function(data) { | |
console.log(data) | |
}) | |
}) | |
socket.on('error', function(err) { | |
console.log(err) | |
}) | |
socket.on('connect_error', function(err) { | |
console.log(err) | |
}) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment