This commit is contained in:
syuilo
2023-06-06 09:16:38 +09:00
parent aeb8955ca2
commit 29856a9129
2 changed files with 9 additions and 1 deletions

View File

@@ -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);
}