Compare commits
No commits in common. "00c37bd9e8d39441ba76f7bf0d4a44c715b90ba0" and "cf018004a2ad08d1fff566b6416f708b641a7729" have entirely different histories.
00c37bd9e8
...
cf018004a2
|
|
@ -1,6 +1,6 @@
|
||||||
{
|
{
|
||||||
"name": "@because/toes",
|
"name": "@because/toes",
|
||||||
"version": "0.0.19",
|
"version": "0.0.18",
|
||||||
"description": "personal web appliance - turn it on and forget about the cloud",
|
"description": "personal web appliance - turn it on and forget about the cloud",
|
||||||
"module": "src/index.ts",
|
"module": "src/index.ts",
|
||||||
"type": "module",
|
"type": "module",
|
||||||
|
|
|
||||||
|
|
@ -12,7 +12,7 @@ router.sse('/stream', (send) => {
|
||||||
queue = queue.then(() => send(...args))
|
queue = queue.then(() => send(...args))
|
||||||
}
|
}
|
||||||
const unsub = onEvent(event => safeSend(event))
|
const unsub = onEvent(event => safeSend(event))
|
||||||
const heartbeat = setInterval(() => safeSend({ type: 'ping' }, 'ping'), 60_000)
|
const heartbeat = setInterval(() => safeSend('', 'ping'), 60_000)
|
||||||
return () => {
|
return () => {
|
||||||
clearInterval(heartbeat)
|
clearInterval(heartbeat)
|
||||||
unsub()
|
unsub()
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user