Skip to content

Instantly share code, notes, and snippets.

/* Create a Simple Server with Bus.io and Socket.io-Client */
//on the server (be sure to have redis running locally!)
var bus = require('bus.io')(3000);
//on the client
var socket = require('socket.io-client')('http://localhost:30000');
socket.on('connect', function () {