Added multiplexing server

This commit is contained in:
David Banham
2012-08-05 23:48:55 +10:00
parent 79299d0071
commit 976536d15e
9 changed files with 285 additions and 30 deletions

View File

@ -2,7 +2,7 @@
// don't emit events from inside the previews themselves
if ( window.location.search.match( /receiver/gi ) ) { return; }
var socket = io.connect(window.location.origin);
var socket = io.connect('127.0.0.1:1947');
var socketId = Math.random().toString().slice(2);
console.log('View slide notes at ' + window.location.origin + '/notes/' + socketId);