Skip to content

Latest commit

 

History

History
61 lines (38 loc) · 696 Bytes

File metadata and controls

61 lines (38 loc) · 696 Bytes

Python example websockets server

Prepare

install python from brew

brew install python

create virtualenv in python-server drectory :

virtualenv --python /usr/local/Cellar/python/2.7.8_1/bin/python2.7 --no-site-packages venv

Install

run virutalenv:

. ./venv/bin/activate

Install application:

cd server
python setup.py install

Run

run virutalenv:

. ./venv/bin/activate

run server:

websockets-server --host localhost --port 8080 --stdio

Debug

run virutalenv:

. ./venv/bin/activate

run application

python example/hub/__init__.py --host localhost --port 8080 --stdio