Compare commits

..

No commits in common. "00c37bd9e8d39441ba76f7bf0d4a44c715b90ba0" and "cf018004a2ad08d1fff566b6416f708b641a7729" have entirely different histories.

2 changed files with 2 additions and 2 deletions

View File

@ -1,6 +1,6 @@
{
"name": "@because/toes",
"version": "0.0.19",
"version": "0.0.18",
"description": "personal web appliance - turn it on and forget about the cloud",
"module": "src/index.ts",
"type": "module",

View File

@ -12,7 +12,7 @@ router.sse('/stream', (send) => {
queue = queue.then(() => send(...args))
}
const unsub = onEvent(event => safeSend(event))
const heartbeat = setInterval(() => safeSend({ type: 'ping' }, 'ping'), 60_000)
const heartbeat = setInterval(() => safeSend('', 'ping'), 60_000)
return () => {
clearInterval(heartbeat)
unsub()