Omkar008 commited on
Commit
9bd6e65
1 Parent(s): 49f2646

Update test.py

Browse files
Files changed (1) hide show
  1. test.py +2 -1
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={}