{"repo":"kthwaite/fastapi-websocket-broadcast","free":true,"listed":false,"github":"https://github.com/kthwaite/fastapi-websocket-broadcast","clone":"git clone https://github.com/kthwaite/fastapi-websocket-broadcast.git","description":"Websocket 'broadcast' demo using FastAPI/Starlette","language":"Python","stars":226,"topics":["websocket","fastapi","starlette","python3","async"],"license":null,"category":"networking-infra","readme_excerpt":"fastapi-websocket-broadcast An example of the familiar 'chat' websocket demo app, implemented in FastAPI / Starlette. Run with And then point your browser to http://localhost:8000. REST API documentation is available under the /docs endpoint. Websocket interface Data from the server is JSON in the form Where type is one of: - ROOM JOIN - sent to a user on successfully joining the chatroom - USER JOIN - sent to all chatroom users when a new user joins the chatroom - USER LEAVE - sent to all chatroom users when a user leaves the chatroom - ERROR - sent to one or more users in the event of a server error - MESSAGE - chat message from one user, broadcast to all chatroom users - WHISPER - private message from one user to another","default_branch":null,"files":null,"tree":[],"storefront":"/r/kthwaite","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/kthwaite/fastapi-websocket-broadcast/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}