Skip to content

Latest commit

 

History

History

hello-websocket-python

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 

Hello Websocket for python

install

python -m venv ws_env
source ws_env/bin/activate # source ws_env/Scripts/activate
pip install --upgrade pip # python.exe -m pip install --upgrade pip
pip install websockets pytz

run server and client

source ws_env/bin/activate 
# windows git bash
source ws_env/Scripts/activate
python hello_server.py
source ws_env/bin/activate
# windows git bash
source ws_env/Scripts/activate
python hello_client.py

format code

source ws_env/bin/activate
# windows git bash
source ws_env/Scripts/activate
pip install black
black .

websockets doc: https://websockets.readthedocs.io/en/stable/index.html