mirror of
https://github.com/fastapi/fastapi.git
synced 2026-10-20 00:53:45 -04:00
⬆️ Bump Starlette from 0.22.0 to 0.23.0 (#5739)
Co-authored-by: Sebastián Ramírez <tiangolo@gmail.com>
This commit is contained in:
1 parent
58757f63af
commit
9293795e99
5 files changed
+74
-4
No files matched your search
@@ -10,7 +10,7 @@ async def read_main():
|
||||
return {"msg": "Hello World"}
|
||||
|
||||
|
||||
@app.websocket_route("/ws")
|
||||
@app.websocket("/ws")
|
||||
async def websocket(websocket: WebSocket):
|
||||
await websocket.accept()
|
||||
await websocket.send_json({"msg": "Hello WebSocket"})
|
||||
|
||||
Reference in new issue
Block a user