feat: add Web Push API support and PWA integration (#189)
* feat: add Web Push API support and PWA integration Add web Push API with subscribe/unsubscribe and visibility endpoints Introduce usePushVisibilityBeacon and useSessionDeepLink hooks Integrate PWA with service worker, registerSW, and VAPID key persistence * feat: add heartbeat visibility beacon for web runtime Add a 10s heartbeat to ping visibility while visible Subscribe to visibilitychange, focus, blur, pageshow, and pagehide events to report state Clear heartbeat interval on unmount to avoid leaks
This commit is contained in:
committed by
GitHub
parent
06c5e821a4
commit
1f23b63c0b
@@ -536,6 +536,18 @@ const commands = {
|
||||
});
|
||||
});
|
||||
|
||||
// Important: in daemon mode we must close the IPC channel, otherwise the CLI
|
||||
// process can hang around as the parent of the detached server.
|
||||
try {
|
||||
child.removeAllListeners('message');
|
||||
child.removeAllListeners('exit');
|
||||
if (typeof child.disconnect === 'function' && child.connected) {
|
||||
child.disconnect();
|
||||
}
|
||||
} catch {
|
||||
// ignore
|
||||
}
|
||||
|
||||
if (isProcessRunning(child.pid)) {
|
||||
const pidFilePathResolved = await getPidFilePath(resolvedPort);
|
||||
const instanceFilePathResolved = await getInstanceFilePath(resolvedPort);
|
||||
|
||||
Reference in New Issue
Block a user