Make sure you have brew installed If uv is not installed
Run
brew install uv- Clone this repo:
git clone git@github.com:nisweesi/websockets.git cd websockets - Install dependencies:
uv sync
- Install pre-commit hooks:
uv run pre-commit install
- Run the file
uv run python client.py
- WebSocket chat
- Rooms
- Online users
- Redis Pub/Sub fanout
- Rate limiting
- Structured logging
- LLM bot with @master
- Railway deployment
client.py -> FastAPI WebSocket -> Redis PubSub -> WebSocket clients