aboutsummaryrefslogtreecommitdiffstats
path: root/src/routes
diff options
context:
space:
mode:
authorAdam Soltys <[email protected]>2023-04-13 13:57:29 -0700
committerAdam Soltys <[email protected]>2023-04-13 13:57:29 -0700
commitb25d9f80dba70f8768484d1143025f5cb120d98d (patch)
tree21b69bd890defd5629af364a02b3cc628724aaa6 /src/routes
parente3d980eeebca341c5cb67b351d3e0fd57f628feb (diff)
downloadcoinos-ui-b25d9f80dba70f8768484d1143025f5cb120d98d.tar.gz
coinos-ui-b25d9f80dba70f8768484d1143025f5cb120d98d.zip
send token with heartbeat
Diffstat (limited to 'src/routes')
-rw-r--r--src/routes/(app)/+layout.svelte2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/routes/(app)/+layout.svelte b/src/routes/(app)/+layout.svelte
index 9eb8f18c..655e28c7 100644
--- a/src/routes/(app)/+layout.svelte
+++ b/src/routes/(app)/+layout.svelte
@@ -39,7 +39,7 @@
lost = Date.now() - $last > 15000;
if (lost) connect(token);
if (counter > 5) {
- send('heartbeat');
+ send('heartbeat', token);
counter = 0;
}
timer = setTimeout(checkSocket, 1000);