Documentation
    Preparing search index...

    Interface MockSoulseekState

    In-memory state of the soulseek mock.

    const state = createMockSoulseekService().mock.state();
    state.accountState === 'online';
    interface MockSoulseekState {
        accountState: "online" | "unconfigured" | "offline";
        handles: Map<
            string,
            {
                file: SoulseekFile;
                image: LinuxDistroImage;
                queryId: string;
                windowId: string;
            },
        >;
        nextFile: number;
        nextQuery: number;
        nextTransfer: number;
        queries: Map<string, MockSoulseekQuery>;
        readsAuthorized: boolean;
        tick?: () => void;
        transfers: Map<string, MockSoulseekTransfer>;
    }
    Index

    Properties

    accountState: "online" | "unconfigured" | "offline"
    handles: Map<
        string,
        {
            file: SoulseekFile;
            image: LinuxDistroImage;
            queryId: string;
            windowId: string;
        },
    >

    Live file handles: fileId → owning query and catalog image.

    nextFile: number
    nextQuery: number
    nextTransfer: number
    queries: Map<string, MockSoulseekQuery>
    readsAuthorized: boolean
    tick?: () => void
    transfers: Map<string, MockSoulseekTransfer>