From dbe463a53d170c94514bf5454b362de89c31995b Mon Sep 17 00:00:00 2001 From: "Timothy J. Baek" Date: Wed, 7 Aug 2024 17:39:54 +0200 Subject: [PATCH] fix --- src/routes/+layout.svelte | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/routes/+layout.svelte b/src/routes/+layout.svelte index df7208393..ef582bfc0 100644 --- a/src/routes/+layout.svelte +++ b/src/routes/+layout.svelte @@ -114,7 +114,7 @@ reconnection: true, reconnectionDelay: 1000, reconnectionDelayMax: 5000, - randomizationFactor: 0.5 + randomizationFactor: 0.5, path: '/ws/socket.io', auth: { token: localStorage.token } }); @@ -123,15 +123,15 @@ console.log('connected'); }); - _socket.on("reconnect_attempt", (attempt) => { + _socket.on('reconnect_attempt', (attempt) => { console.log('reconnect_attempt', attempt); }); - _socket.on("reconnect_failed", () => { + _socket.on('reconnect_failed', () => { console.log('reconnect_failed'); }); - _socket.on("disconnect", (reason, details) => { + _socket.on('disconnect', (reason, details) => { console.log(`Socket ${socket.id} disconnected due to ${reason}`); if (details) { console.log('Additional details:', details);