Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Fetching latest commit…

Cannot retrieve the latest commit at this time

..
Failed to load latest commit information.
README.md
config.js
package.json
server.js
sockjs_app.js

README.md

SockJS test server

In order to test sockjs server implementation the server needs to provide a standarized sockjs endpoint that will can used by various sockjs-related tests. For example by QUnit or Sockjs-protocol tests.

This small code does exactly that - runs a simple server that supports the following SockJS services:

  • /echo
  • /disabled_websocket_echo
  • /close
  • /ticker
  • /amplify
  • /broadcast

If you just want to quickly run it:

npm install
node server.js

If you want to run do development it's recommended to run make test_server from the top sockjs-node directory:

cd ../..
make test_server
Something went wrong with that request. Please try again.