fix state pollution and other bugs, and random other stuff

This commit is contained in:
Zoe
2025-09-06 00:23:37 -05:00
parent 68bb6f1d2c
commit f78a156f34
14 changed files with 442 additions and 294 deletions

View File

@@ -1,13 +1,16 @@
import { writable, type Writable } from 'svelte/store';
import { ConnectionState } from '../types/websocket';
import { browser } from '$app/environment';
export interface Room {
id: string | null;
participants: number;
connectionState: ConnectionState;
}
export const room: Writable<Room> = writable({
id: null,
participants: 0,
connectionState: ConnectionState.DISCONNECTED,
key: null,
});