https://github.com/meyer1994/rooms
For when you need a simple WebSocket endpoint for prototyping stuff
https://github.com/meyer1994/rooms
broadcaster fastapi python render websockets
Last synced: 19 days ago
JSON representation
For when you need a simple WebSocket endpoint for prototyping stuff
- Host: GitHub
- URL: https://github.com/meyer1994/rooms
- Owner: meyer1994
- Created: 2023-04-23T15:01:44.000Z (about 3 years ago)
- Default Branch: master
- Last Pushed: 2025-03-10T11:45:31.000Z (about 1 year ago)
- Last Synced: 2025-03-10T12:42:03.145Z (about 1 year ago)
- Topics: broadcaster, fastapi, python, render, websockets
- Language: Python
- Homepage:
- Size: 104 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Rooms
A stupid simple websocket service.
## About
Created because, sometimes, I want a very stupid simple websockets endpoint
to test stuff. All messages are sent to everyone connected to the same room and
that is it. Use as you will :)
## Usage
There is one thing you need to do: choose a room name:
```bash
websocat wss://rooms.jmeyer.dev/my-cool-room-name
```
## Development
Not much to talk about it here. I simply use an in memory storage to save the
connections using [Broadcaster][1].
```bash
pip install -r requirements.txt
uvicorn handler:app --reload
```
[1]: https://github.com/encode/broadcaster