Spaces:
Running
Running
Update test.py
Browse files
test.py
CHANGED
@@ -305,6 +305,9 @@ async def test_websocket(websocket: WebSocket):
|
|
305 |
|
306 |
|
307 |
await websocket.send_text("Successfully sent all the Data !")
|
|
|
|
|
|
|
308 |
@app.get("/token")
|
309 |
async def get_token(token: str = Depends(oauth2_scheme)):
|
310 |
return jwt.decode(token, GOOGLE_CLIENT_SECRET, algorithms=["HS256"])
|
|
|
305 |
|
306 |
|
307 |
await websocket.send_text("Successfully sent all the Data !")
|
308 |
+
|
309 |
+
event_generator(data)
|
310 |
+
|
311 |
@app.get("/token")
|
312 |
async def get_token(token: str = Depends(oauth2_scheme)):
|
313 |
return jwt.decode(token, GOOGLE_CLIENT_SECRET, algorithms=["HS256"])
|