Python 2.X WebSocket Client

1 min read python

Written in 2019. Tools, APIs and prices may have changed since.

Lab note What I wrote down while learning this by building with it. Short by design; the code is in pfeilbr/python-2.x-websocket-client-playground.

learn python websocket-client module

prerequisites

running

# server (node.js) - run in own terminal (blocking)
cd src/server
npm i
npm start

# client - run in separate terminal
cd src/client
virtualenv venv
source venv/bin/activate
pip install -r requirements.txt
python client.py

example run

Keep learning

Get new guides and courses by email

An occasional email when I publish a new guide, course or post. No spam, and you can unsubscribe any time.

Sent with Buttondown. I never share your address. Prefer a feed? Use the RSS feed.