Spaces:
Running
Running
Update test.py
Browse files
test.py
CHANGED
@@ -238,7 +238,7 @@ async def test_websocket(websocket: WebSocket):
|
|
238 |
access_token = code
|
239 |
messages=get_messages(access_token)
|
240 |
print(len(messages))
|
241 |
-
await websocket.
|
242 |
|
243 |
|
244 |
attachments = []
|
|
|
238 |
access_token = code
|
239 |
messages=get_messages(access_token)
|
240 |
print(len(messages))
|
241 |
+
await websocket.send_json({"total_messages": len(messages)})
|
242 |
|
243 |
|
244 |
attachments = []
|