Omkar008 commited on
Commit
a35f1f4
1 Parent(s): 92ec692

Update controllers/ws_controller.py

Browse files
Files changed (1) hide show
  1. controllers/ws_controller.py +3 -1
controllers/ws_controller.py CHANGED
@@ -214,7 +214,9 @@ async def send_message_in_chunks(websocket: WebSocket, message_json: dict, chunk
214
 
215
  print(body_len)
216
  print(attachment_len)
217
-
 
 
218
 
219
  message_str = json.dumps(message_json)
220
  # print("Printing message_str")
 
214
 
215
  print(body_len)
216
  print(attachment_len)
217
+ if attachment_len == 0:
218
+ attachment_len = None
219
+ await websocket.send_json({"body_len":body_len ,"attachment_len":attachment_len})
220
 
221
  message_str = json.dumps(message_json)
222
  # print("Printing message_str")