Skip to content

Latest commit

 

History

History
 
 

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 

README.md

Python example websockets server

If you will have some problems you can look on .gitlab-ci.yml file in root directory - there are commands for linux machine

Run via docker

Docker image is available on dockerhub: jacekmarchwicki/javawebsocketclient

Run docker in debug

docker run --rm --tty --interactive --publish 8080:8080 --name javawebsocketclient jacekmarchwicki/javawebsocketclient websockets-server --host 0.0.0.0 --port 8080 --stdio

Run docker as a deamon:

docker run --detach --publish 8080:8080 --name javawebsocketclient jacekmarchwicki/javawebsocketclient websockets-server --host 0.0.0.0 --port 8080 --stdio

Prepare

install python from brew

brew install python pkg-config libffi

Install virtualenv

pip install virualenv

create virtualenv in python-server drectory :

cd websockets-server
virtualenv --no-site-packages venv

Install and run

run virutalenv:

cd websockets-server
. ./venv/bin/activate

Install application:

cd server
python setup.py install

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