diff options
-rw-r--r-- | plugin/multiplex/index.js | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/plugin/multiplex/index.js b/plugin/multiplex/index.js index 0b03fc7..35df8e3 100644 --- a/plugin/multiplex/index.js +++ b/plugin/multiplex/index.js @@ -15,6 +15,7 @@ var opts = { io.sockets.on('connection', function(socket) { socket.on('slidechanged', function(slideData) { + if (typeof slideData.secret == 'undefined' || slideData.secret == null || slideData.secret === '') return; if (createHash(slideData.secret) === slideData.socketId) { slideData.secret = null; socket.broadcast.emit(slideData.socketId, slideData); |