⬆️ 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:
Marcelo Trylesinski
2023-02-08 11:23:07 +01:00
committed by GitHub
parent 58757f63af
commit 9293795e99
5 changed files with 74 additions and 4 deletions

View File

@@ -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"})