Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Simple web interface for people wanting to check out Web Sockets
JavaScript
Branch: master

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
public
websocket-server @ 29ba5f0
.gitmodules
README.md
server.js

README.md

Directions for Installing

This example server uses Node and requires connect to be installed. The best and easiest way to do that is to install NPM on to your system and the run:

npm install connect

Now with connect installed, either download this repository, or clone it using git:

git clone https://github.com/remy/testyoursockets.git

You now need to get the node-websocket-server submodule. Run the following command in the newly cloned directory (probably called testyoursockets):

git submodule init
git submodule update

And then run the server:

node server.js

By default the server will run over localhost on port 80. If you want to run it on another port, just add that to the command:

node server.js 8000

Note that the instructions in the index page refer to http://testyoursockets.com - but the socket is actually running and connecting to your localhost.

Something went wrong with that request. Please try again.