From 57da37e9958278a733c5fc2d11135413a3604a8c Mon Sep 17 00:00:00 2001 From: Roy Hyunjin Han Date: Mon, 23 Feb 2015 11:48:19 -0500 Subject: [PATCH 01/26] Update README --- README.rst | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/README.rst b/README.rst index 7edc2c3..3cad020 100644 --- a/README.rst +++ b/README.rst @@ -33,7 +33,8 @@ Activate isolated environment. :: Launch your socket.io server. :: # Get package folder - PACKAGE_FOLDER=`python -c "import os, socketIO_client; print(os.path.dirname(socketIO_client.__file__))"` + PACKAGE_FOLDER=`python -c "import os, socketIO_client;\ + print(os.path.dirname(socketIO_client.__file__))"` # Start socket.io server DEBUG=* node $PACKAGE_FOLDER/tests/serve.js # Start proxy server in a separate terminal on the same machine @@ -156,7 +157,7 @@ This software is available under the MIT License. Credits ------- -- `Guillermo Rauch `_ wrote the `socket.io specification `_. +- `Guillermo Rauch `_ wrote the `socket.io specification `_. - `Hiroki Ohtani `_ wrote `websocket-client `_. - `rod `_ wrote a `prototype for a Python client to a socket.io server `_. - `Alexandre Bourget `_ wrote `gevent-socketio `_, which is a socket.io server written in Python. From 601ba59971fd98647dc7d44cb5f52ab03e08c3a1 Mon Sep 17 00:00:00 2001 From: Roy Hyunjin Han Date: Mon, 2 Mar 2015 08:59:47 -0500 Subject: [PATCH 02/26] Add bountysource link --- README.rst | 3 +++ 1 file changed, 3 insertions(+) diff --git a/README.rst b/README.rst index 3cad020..ee301dd 100644 --- a/README.rst +++ b/README.rst @@ -1,6 +1,9 @@ .. image:: https://travis-ci.org/invisibleroads/socketIO-client.svg?branch=master :target: https://travis-ci.org/invisibleroads/socketIO-client +.. image:: https://www.bountysource.com/badge/tracker?tracker_id=388415 + :target: https://www.bountysource.com/trackers/388415-invisibleroads-socketio-client?utm_source=388415&utm_medium=shield&utm_campaign=TRACKER_BADGE + socketIO-client =============== From 978a669d162b627005cc285d91656a872913dd09 Mon Sep 17 00:00:00 2001 From: Roy Hyunjin Han Date: Wed, 15 Apr 2015 07:17:23 -0400 Subject: [PATCH 03/26] Add websocket transport --- .travis.yml | 3 +- README.rst | 6 +- TODO.goals | 8 +- socketIO_client/__init__.py | 47 +++++++---- socketIO_client/heartbeats.py | 8 +- socketIO_client/parsers.py | 30 ++++--- socketIO_client/symmetries.py | 14 ++-- socketIO_client/tests/__init__.py | 15 +++- socketIO_client/tests/index.html | 2 +- socketIO_client/tests/serve.js | 14 +++- socketIO_client/tests/ssl.crt | 21 +++++ socketIO_client/tests/ssl.key | 28 +++++++ socketIO_client/transports.py | 132 ++++++++++++++++++++++++------ 13 files changed, 250 insertions(+), 78 deletions(-) create mode 100644 socketIO_client/tests/ssl.crt create mode 100644 socketIO_client/tests/ssl.key diff --git a/.travis.yml b/.travis.yml index b0bc004..1db3eb1 100644 --- a/.travis.yml +++ b/.travis.yml @@ -8,13 +8,12 @@ before_install: - sudo apt-get install nodejs install: - npm install -G socket.io - - npm install -G http-proxy + - npm install -G yargs - pip install -U requests - pip install -U six - pip install -U websocket-client - pip install -U coverage before_script: - DEBUG=* node socketIO_client/tests/serve.js & - - DEBUG=* node socketIO_client/tests/proxy.js & - sleep 3 script: nosetests diff --git a/README.rst b/README.rst index ee301dd..9a20e0b 100644 --- a/README.rst +++ b/README.rst @@ -1,9 +1,6 @@ .. image:: https://travis-ci.org/invisibleroads/socketIO-client.svg?branch=master :target: https://travis-ci.org/invisibleroads/socketIO-client -.. image:: https://www.bountysource.com/badge/tracker?tracker_id=388415 - :target: https://www.bountysource.com/trackers/388415-invisibleroads-socketio-client?utm_source=388415&utm_medium=shield&utm_campaign=TRACKER_BADGE - socketIO-client =============== @@ -139,7 +136,8 @@ Specify params, headers, cookies, proxies thanks to the `requests