Omkar008 commited on
Commit
1494a0b
1 Parent(s): 5f17ed5

Update test.py

Browse files
Files changed (1) hide show
  1. test.py +1 -0
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)):