Async Python websocket chat with persistence.
You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
lza_menace cc3bdce54b init 1 year ago
src/chat init 1 year ago
.gitignore init 1 year ago init 1 year ago
poetry.lock init 1 year ago
pyproject.toml init 1 year ago


Simple websocket server to allow "trollboxes" in your frontend; real-time chat. Persistence happens in a SQLite database chat.db.

/ws is the pub/sub websocket endpoint to point clients to. /replay is the http endpoint to replay the chat log so new clients can read scrollback.

You can write your own client, I used react-use-websocket in my last site.


python3 -m venv .venv
.venv/bin/pip install poetry
poetry install
poetry run start