Skip to content

Instantly share code, notes, and snippets.

@joewalnes
joewalnes / README.md
Created September 22, 2012 18:23
WebSocket Slide Server

Demonstrates a way to build an HTML slide deck and allow multiple browsers to all see slide changes at the same time, triggered by something externally (via an HTTP request). Uses WebSockets to for real time updates.

Instructions

  • Requires Python. Tested on 2.7. Runs on a Pi and any old Linux/OSX setup. Should work on Python 3 - maybe.
  • Install Tornado. You can use pip install tornado or download the tarball from http://www.tornadoweb.org/.
  • Copy slides.html and slide-server.py into the same directory.
  • Run python slide-server.py. Uses sensible defaults. --help for options.
  • Open http://localhost:54321/ in your browser. Recommend Chrome.