summaryrefslogtreecommitdiff
path: root/packages/frontend/src/stream.ts
diff options
context:
space:
mode:
Diffstat (limited to 'packages/frontend/src/stream.ts')
-rw-r--r--packages/frontend/src/stream.ts2
1 files changed, 1 insertions, 1 deletions
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);
}