Spaces:
Running
Running
Update test.py
Browse files
test.py
CHANGED
@@ -223,7 +223,8 @@ async def test_websocket(websocket: WebSocket):
|
|
223 |
access_token = code
|
224 |
messages=get_messages(access_token)
|
225 |
print(len(messages))
|
226 |
-
|
|
|
227 |
attachments = []
|
228 |
prev_data=""
|
229 |
data_new={}
|
|
|
223 |
access_token = code
|
224 |
messages=get_messages(access_token)
|
225 |
print(len(messages))
|
226 |
+
await websocket.send_json({"total_messages":len(messages)})
|
227 |
+
await websocket.send_text("CompletedSendingTotalMessagesLength")
|
228 |
attachments = []
|
229 |
prev_data=""
|
230 |
data_new={}
|