For some reason I cannot get Litestar to send messages via websocket, I struggled for hours already.
- Please open the demo.html in your browser
- Start (the working) FastAPI implementation via
uvicorn api2:app --reload - Start Litestar implementation via
uvicorn api3:app --reload
I'm aware that websocket is not injected via dependencies = { 'websocket': WebSocket } in the docs, but it throws a warning otherwise.