blob: e6179f6def906a7e08b437e6a1dcc9a5915bd5a7 [file] [log] [blame]
JJ Allaire2ec40242014-09-15 09:18:39 -04001(function() {
2 var multiplex = Reveal.getConfig().multiplex;
3 var socketId = multiplex.id;
4 var socket = io.connect(multiplex.url);
5
6 socket.on(multiplex.id, function(data) {
7 // ignore data from sockets that aren't ours
8 if (data.socketId !== socketId) { return; }
9 if( window.location.host === 'localhost:1947' ) return;
10
11 Reveal.slide(data.indexh, data.indexv, data.indexf, 'remote');
12 });
13}());