Skip to content
HTML5 WebSockets demo and framework for creating WebSockets demos.
JavaScript HTML Python CSS
Branch: master
Clone or download

Latest commit

Fetching latest commit…
Cannot retrieve the latest commit at this time.

Files

Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
client_modules
node_modules
vendor
.gitignore
Procfile
README.md
client.css
client.js
index.html
package.json
server.js
server.py
simple_index.html
simple_server.js
template_simple_index.html
template_simple_server.js

README.md

WebSockets Demo

This is a demo app to accompany the WebSockets and Methods for Real-Time Data Streaming talk at the SE Michigan JavaScript users group.

For more info and documentation, view the project's homepage.

Also, view the WebSockets presentation slides here.

Getting Started

Grab the repo from Github:

git clone git://github.com/JangoSteve/websockets-demo

Then cd into the project's root directory and install:

cd websockets-demo
npm install

Once everything is installed, run the server:

npm start

And finally, open the client page (assuming Chrome is your default browser; if not, try browsing to the page in your Finder, right click, and open with Chrome (then again, it may run in Firefox or some other browser too, who knows)):

open index.html

To see the WebSockets in action, try opening the client page a bunch of times in different tabs:

open index.html
open index.html
open index.html
open index.html
open index.html
open index.html
open index.html
open index.html

Optionally, you may also open the client page over the network, e.g. locally or over wifi, if you have the server running. Visit http://localhost:8080, or look up your local network address (e.g. 192.168.1.1) using ifconfig and visit your address on port 8080.

Client Modules

View more info about client modules

You can’t perform that action at this time.