Dante over WebSockets
JavaScript
Latest commit 1852d4f Jan 4, 2013 @tjanczuk update readme
Permalink
Failed to load latest commit information.
.gitignore add socket.io sample Jan 5, 2013
README.md update readme Jan 5, 2013
divinecomedy.js add socket.io sample Jan 5, 2013
index-faye.html add socket.io sample Jan 5, 2013
index-socketio.html add socket.io sample Jan 5, 2013
package.json add socket.io sample Jan 5, 2013
server-faye.js add socket.io sample Jan 5, 2013
server-socketio.js add socket.io sample Jan 5, 2013
setup.bat simplify setup for iisnode Oct 24, 2012
web.config

README.md

Dante over WebSockets

This is a sample node.js application that streams Dante's Divine Comedy, Canto 1, to the browser client over WebSockets, one stanza every 2 seconds.

Instructions for self-hosting

Install dependencies:

npm install

Start a server using socket.io:

node server-socketio.js

or start a server using faye-websockets:

node server-faye.js

Then open your browser and navigate to:

http://localhost:8888

Instructions for hosting in IIS 8.0

You must be running Windows 8 or Windows Server 2012 with IIS 8.0 and iisnode v0.2.x or later installed. WebSocket functionality is not available in prior versions of Windows, IIS, or iisnode.

Install dependencies:

npm install

Next, you must set up an IIS application pointing to the location of the code:

setup.bat

To see the demo using socket.io, open your browser and navigate to:

http://localhost/dante/server-socketio.js

To see the demo using faye-websockets, navigate to:

http://localhost/dante/server-faye.js

Enjoy!