fix: Prevent websocket messages from transferring between channels
This commit is contained in:
parent
04c13396b6
commit
42d50bf90d
@ -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();
|
||||||
|
Loading…
Reference in New Issue
Block a user