Spaces:
Sleeping
Sleeping
up
Browse files- app/sse/view.py +1 -1
app/sse/view.py
CHANGED
|
@@ -12,7 +12,7 @@ _HEARTBEAT_INTERVAL = 10
|
|
| 12 |
async def _heartbeat_loop():
|
| 13 |
while True:
|
| 14 |
await asyncio.sleep(_HEARTBEAT_INTERVAL)
|
| 15 |
-
payload = json.dumps({"type": "heartbeat", "
|
| 16 |
|
| 17 |
stale_clients = []
|
| 18 |
for client_id, queue in list(sse_clients.items()):
|
|
|
|
| 12 |
async def _heartbeat_loop():
|
| 13 |
while True:
|
| 14 |
await asyncio.sleep(_HEARTBEAT_INTERVAL)
|
| 15 |
+
payload = json.dumps({"type": "heartbeat", "msg": "test", "ts": time.time()}, ensure_ascii=False)
|
| 16 |
|
| 17 |
stale_clients = []
|
| 18 |
for client_id, queue in list(sse_clients.items()):
|