Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Control ShowOff presentations with WebSockets. (Hit http://linode.timothyandrew.net:10000/next [or prev] to move the demo slides around.)
JavaScript
Branch: master

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
.gitignore
README.md
showoff-socket-control.js

README.md

Control a ShowOff presentation (for all connected users) via a Node app running Socket.IO.

Install dependencies & start the server.

$ npm install express socket.io
$ node showoff-socket-control.js

Connect ShowOff to this Node app

  • Grab the client-side Socket.IO script
cd /path/to/showoff/presentation
wget http://node-app-uri:port/socket.io/socket.io.js
  • ShowOff has to create a Socket. Add this to the markdown of your first slide.
<script>
    var socket = new io.connect('http://node-app-uri:port');

    socket.on('prev', function(data){
        prevStep();
    });

    socket.on('next', function(data){
        nextStep();
    });
</script>

And that's it!

Start ShowOff & hit these URLs to get the presentation moving.

http://node-app-uri:port/next
http://node-app-uri:port/prev
Something went wrong with that request. Please try again.