An implementation of the official WebSocket API + Node.js
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
node_modules
.gitignore
LICENSE
README.md
client.js
index.html
package.json
server.js
test-browser-support.html

README.md

101 Web Socket Protocol Handshake

This is an implementation of the official WebSocket API + Node.js.

View the original post here.

Instructions

Assuming you have Node.js installed on your machine, just clone the repository and run node server.js or npm start.

Then open index.html in your browser.

You shouldn't even need a web server, but I'd recommend using one anyway. If you have python installed it's just one command away, e.g.: python -m SimpleHTTPServer. Then go to http://localhost:8000.