fix: Prevent websocket messages from transferring between channels

This commit is contained in:
April Hall 2025-02-06 16:32:32 -05:00
parent 04c13396b6
commit 42d50bf90d
Signed by: arithefirst
GPG Key ID: 4508A15C4DB91C5B

View File

@ -46,6 +46,12 @@
msg = ''; msg = '';
} }
// Clear the log whenever the channel changes
$effect(() => {
console.info(`Channel changed to ${channel}`);
log = [];
});
onMount(() => { onMount(() => {
establishSocketIOConnection(); establishSocketIOConnection();
user = uuidv4(); user = uuidv4();