multiplexing work with socket.io 1.0+ #1281 #1276

This commit is contained in:
Hakim El Hattab 2015-09-29 10:38:34 +02:00
parent b16bc6fc2e
commit c1a7e83d75
3 changed files with 33 additions and 53 deletions

View file

@ -8,6 +8,6 @@
if (data.socketId !== socketId) { return; }
if( window.location.host === 'localhost:1947' ) return;
Reveal.slide(data.indexh, data.indexv, data.indexf, 'remote');
Reveal.setState(data.state);
});
}());