Omkar008 commited on
Commit
6dc0017
1 Parent(s): 43970d9

Update test.py

Browse files
Files changed (1) hide show
  1. test.py +1 -1
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.send(json.dumps({"total_messages": len(messages)}))
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 = []