Restore proxy server

This commit is contained in:
Roy Hyunjin Han 2015-02-17 16:40:43 -05:00
commit d96831de19
4 changed files with 41 additions and 5 deletions

View file

@ -30,10 +30,14 @@ Activate isolated environment. ::
VIRTUAL_ENV=$HOME/.virtualenv
source $VIRTUAL_ENV/bin/activate
Launch a socket.io server. ::
Launch your server. ::
# Get package folder
PACKAGE_FOLDER=`python -c "import os, socketIO_client; print(os.path.dirname(socketIO_client.__file__))"`
node $PACKAGE_FOLDER/tests/serve.js
# Start socket.io server
DEBUG=* node $PACKAGE_FOLDER/tests/serve.js
# Start proxy server in a separate terminal on the same machine
DEBUG=* node $PACKAGE_FOLDER/tests/proxy.js
For debugging information, run these commands first. ::