Spaces:
Running
Running
Update test.py
Browse files
test.py
CHANGED
@@ -315,6 +315,7 @@ async def test_websocket(websocket: WebSocket):
|
|
315 |
await websocket.send_json({"message":"Successfully sent all the Data !"})
|
316 |
|
317 |
await event_generator(data)
|
|
|
318 |
|
319 |
@app.get("/token")
|
320 |
async def get_token(token: str = Depends(oauth2_scheme)):
|
|
|
315 |
await websocket.send_json({"message":"Successfully sent all the Data !"})
|
316 |
|
317 |
await event_generator(data)
|
318 |
+
await websocket.close()
|
319 |
|
320 |
@app.get("/token")
|
321 |
async def get_token(token: str = Depends(oauth2_scheme)):
|