Endo
    Preparing search index...
    interface StateStore {
        filePath: string;
        forgetRoom: (uri: string) => void;
        read: () => PersistedState;
        recordJoin: (uri: string, displayName?: string) => void;
        setName: (name: string) => void;
    }
    Index

    Properties

    filePath: string
    forgetRoom: (uri: string) => void

    Remove a room from recentRooms (e.g. so the user can prune a stale entry). No-op if the URI isn't present.

    read: () => PersistedState

    Snapshot of the in-memory state (also reflects the on-disk file at construction time). Returns a copy so callers can't mutate internal state by accident.

    recordJoin: (uri: string, displayName?: string) => void

    Push the room to the front of recentRooms (deduped by uri), stamp lastJoinedAt to now, and persist. If the room is already present, its existing displayName is preserved unless the new call provides one.

    setName: (name: string) => void