Spaces:
Sleeping
Sleeping
Update controllers/ws_controller.py
Browse files
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")
|