fix: Prevent websocket messages from transferring between channels
This commit is contained in:
parent
04c13396b6
commit
42d50bf90d
@ -46,6 +46,12 @@
|
||||
msg = '';
|
||||
}
|
||||
|
||||
// Clear the log whenever the channel changes
|
||||
$effect(() => {
|
||||
console.info(`Channel changed to ${channel}`);
|
||||
log = [];
|
||||
});
|
||||
|
||||
onMount(() => {
|
||||
establishSocketIOConnection();
|
||||
user = uuidv4();
|
||||
|
Loading…
Reference in New Issue
Block a user