From 29856a9129495cf64b7b5f0d287485cf4e6963c1 Mon Sep 17 00:00:00 2001 From: syuilo Date: Tue, 6 Jun 2023 09:16:38 +0900 Subject: tweak of 981e6f996 --- packages/frontend/src/stream.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'packages/frontend/src/stream.ts') diff --git a/packages/frontend/src/stream.ts b/packages/frontend/src/stream.ts index a807d1d306..a7e4ecd42d 100644 --- a/packages/frontend/src/stream.ts +++ b/packages/frontend/src/stream.ts @@ -19,7 +19,7 @@ export function useStream(): Misskey.Stream { function heartbeat(): void { if (stream != null && document.visibilityState === 'visible') { - stream.send('ping'); + stream.heartbeat(); } window.setTimeout(heartbeat, 1000 * 60); } -- cgit v1.2.3-freya