~kvsari/websockexample

Quick example for websockets in python
Add Kabu Station API example
Fix README.md

refs

master
browse  log 

clone

read-only
https://git.sr.ht/~kvsari/websockexample
read/write
git@git.sr.ht:~kvsari/websockexample

You can also use your local clone with git send-email.

#Websocket Example

Quick and easy example client and server for the websocket protocol.

#Requires

Must use at least python 3.7.7 to run this example.

#Setup

Make sure you use virtualenv to prevent pollution of your Python package namespace. You can use virtualenvwrapper to aid further and is assumed in the rest of the README.

Clone/Move/Copy this project into your PROJECT_HOME. Then run;

mkproject -f websockexample

This will setup the virtual env environment. Inside of project root run;

pip install .

To install this project and its dependencies.

#Run

To run the client and server on localmachine, open a seperate terminal of each one then (make sure you're in the right virtualenv environment);

wseserver

To run the server with default args.

wseclient

To run the client with default args.