Broadcast fragmentdata
authorMichael Kühnel <mail@michael-kuehnel.de>
Thu, 18 Oct 2012 21:59:43 +0000 (23:59 +0200)
committerMichael Kühnel <mail@michael-kuehnel.de>
Thu, 18 Oct 2012 21:59:43 +0000 (23:59 +0200)
plugin/speakernotes/index.js

index 17314f331888a8c2e23c4f4268bbda542fbc94fb..7387f5d2240dbf283b1ded9e323c383debb1e912 100644 (file)
@@ -18,6 +18,9 @@ io.sockets.on('connection', function(socket) {
        socket.on('slidechanged', function(slideData) {
                socket.broadcast.emit('slidedata', slideData);
        });
+       socket.on('fragmentchanged', function(fragmentData) {
+               socket.broadcast.emit('fragmentdata', fragmentData);
+       });
 });
 
 app.configure(function() {