Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save JerzySpendel/b44dfb01cca81f8e889f08acca27d00e to your computer and use it in GitHub Desktop.
Save JerzySpendel/b44dfb01cca81f8e889f08acca27d00e to your computer and use it in GitHub Desktop.
var s = 'http://nook.dev.skygate.pl:3001';
var io = require('socket.io-client');
var socket = io.connect(s);
socket.emit('hello', 'wiadomosc');
socket.on('hello', function(data) {
console.log(data);
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment