Skip to content

Repository files navigation

Terminal Messaging using Websockets

Pre-setup

Make sure you have brew installed If uv is not installed

Run

brew install uv

Setup

  1. Clone this repo:
    git clone git@github.com:nisweesi/websockets.git
    cd websockets
    
  2. Install dependencies:
    uv sync
    
  3. Install pre-commit hooks:
    uv run pre-commit install
    
  4. Run the file
    uv run python client.py
    

Features

  • WebSocket chat
  • Rooms
  • Online users
  • Redis Pub/Sub fanout
  • Rate limiting
  • Structured logging
  • LLM bot with @master
  • Railway deployment

Architecture

client.py -> FastAPI WebSocket -> Redis PubSub -> WebSocket clients

About

Trying to deploy my websockets implementation to test it

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages