Sign inSign up

jacekmarchwicki/javawebsocketclient

By jacekmarchwicki

Updated over 10 years ago

Example sever for RxJava websocket library https://github.com/jacek-marchwicki/JavaWebsocketClient

Image
0

1.8K

jacekmarchwicki/javawebsocketclient repository overview

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

Tag summary

Content type

Image

Digest

Size

263.3 MB

Last updated

over 10 years ago

docker pull jacekmarchwicki/javawebsocketclient