I followed the examples at the following link: https://github.com/hakimel/reveal.js#multiplexing, but somehow the multiplexing doesn't work -- the clients don't update when the master slide updates. I've tried it with both the reveal.js demo socket.io server, and tried hosting my own.
Neither of those options work, and I'm pretty sure I've configured them right. Here's my config code for both:
Reveal.initialize({
controls: true,
progress: true,
history: true,
center: true,
multiplex: {
id: 'e2bc6e79f19fbe63',
secret: '13661966883862075064',
url: 'revealjs.jit.su:80'
},
dependencies: [
{ src: '//cdnjs.cloudflare.com/ajax/libs/socket.io/0.9.10/socket.io.min.js', async: true },
{ src: 'plugin/multiplex/client.js', async: true },
{ src: 'plugin/multiplex/master.js', async: true },
]
// { src: 'plugin/search/search.js', async: true, condition: function() { return !!document.body.classList; } }
// { src: 'plugin/remotes/remotes.js', async: true, condition: function() { return !!document.body.classList; } }
});
Reveal.initialize({
controls: true,
progress: true,
history: true,
center: true,
multiplex: {
id: 'e2bc6e79f19fbe63',
secret: null,
url: 'revealjs.jit.su:80'
},
dependencies: [
{ src: '//cdnjs.cloudflare.com/ajax/libs/socket.io/0.9.10/socket.io.min.js', async: true },
{ src: 'plugin/multiplex/client.js', async: true },
{ src: 'plugin/multiplex/master.js', async: true },
]
// { src: 'plugin/search/search.js', async: true, condition: function() { return !!document.body.classList; } }
});
Obviously, I went to http://revealjs.jit.su/token to get a token and secret, and the client secret is null so they cannot control the presentation themselves. However, when I go to another slide in the master, the client doesn't follow at all despite being configured to do so. Both master and client are hosted locally under XAMPP (I've also tried hosting the master with node static, but same results).
Has anyone got any idea on how to solve this? Any help is much appreciated!
You have to set some extra dependencies (to make the socket request actually work)
{ src: 'http://revealjs.jit.su/socket.io/socket.io.js', async: true },
{ src: 'plugin/multiplex/client.js', async: true },
{ src: 'plugin/multiplex/master.js', async: true }
Make sure your plugin folder does contain the multiplex files!
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With