Skip to content
This repository

An attempt to define SockJS protocol

branch: master

Merge pull request #69 from fzzy/master

Removed a space from XhrPolling content type test which caused the test to always fail.
latest commit 18ba798772
Marek majek authored
Octocat-spinner-32 .gitignore ignore node_modules October 20, 2011
Octocat-spinner-32 Makefile Use older, compatible websocket-client version 0.4.1 January 30, 2012
Octocat-spinner-32 README.md Advertise 0.3.3 as the stable protocol version September 27, 2012
Octocat-spinner-32 client.coffee Minor modifications to smoke test. Fix #4 October 07, 2011
Octocat-spinner-32 common.coffee Minor modifications to smoke test. Fix #4 October 07, 2011
Octocat-spinner-32 http-quirks.py Added missing import February 17, 2012
Octocat-spinner-32 httplib_fork.py Rename forked httplib to avoid confusion with python version of the l… January 30, 2012
Octocat-spinner-32 smoke-test.coffee Minor modifications to smoke test. Fix #4 October 07, 2011
Octocat-spinner-32 sockjs-protocol-0.1.py Version utils.py, to make previous 0.2.1 and 0.2 protocols runnable a… April 03, 2012
Octocat-spinner-32 sockjs-protocol-0.2.1.py Version utils.py, to make previous 0.2.1 and 0.2 protocols runnable a… April 03, 2012
Octocat-spinner-32 sockjs-protocol-0.2.py Version utils.py, to make previous 0.2.1 and 0.2 protocols runnable a… April 03, 2012
Octocat-spinner-32 sockjs-protocol-0.3.3.py Removed a space from XhrPolling content type test which caused the te… February 14, 2013
Octocat-spinner-32 sockjs-protocol-0.3.py Version utils.py, to make previous 0.2.1 and 0.2 protocols runnable a… April 03, 2012
Octocat-spinner-32 sockjs-protocol-dev.py Removed a space from XhrPolling content type test which caused the te… February 14, 2013
Octocat-spinner-32 utils_02.py Version utils.py, to make previous 0.2.1 and 0.2 protocols runnable a… April 03, 2012
Octocat-spinner-32 utils_03.py sockjs/sockjs-node#75 - make sure close event is delivered to the client June 15, 2012
README.md

SockJS family:

SockJS-protocol

This project attempts to provide a definition of SockJS protocol. The documentation is in a form of a Python test suite decorated with some prose in literate-programming style. You can see current documentation here:

Running tests

You must have Python 2.X and virtualenv installed. You can install it via pip install virtualenv or sudo apt-get install python-virtualenv.

To run the test suite against your server, first checkout dependencies:

make test_deps

And you're ready to run the tests against your server. By default we assume that your test server is at http://localhost:8081:

./venv/bin/python sockjs-protocol-0.3.3.py

You can specify the test server URL manually:

SOCKJS_URL=http://localhost:1234 ./venv/bin/python sockjs-protocol-0.3.3.py -v

You can run specific tests providing test class as an optional argument:

./venv/bin/python sockjs-protocol-0.3.3.py Protocol.test_simpleSession

There is also another test, intended to look for some http quirks:

./venv/bin/python http-quirks.py -v

Genrating literate html

If you edited sockjs-protocol files, you may want to see how it looks rendered to html. To generate the html type:

make build

You should see generated html files in docs subdirectory.

If you see pygments.util.ClassNotFound, take a look here.

Something went wrong with that request. Please try again.