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
/* 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 () { |