Documentation
    Preparing search index...

    Interface MockOutboxState

    In-memory state of the outbox mock.

    const state = createMockOutboxService().mock.state();
    state.user.length === 64;
    interface MockOutboxState {
        published: NostrEvent[];
        store: MockNostrStore;
        subscriptions: Map<string, MockOutboxSubscription>;
        user: string;
    }
    Index

    Properties

    published: NostrEvent[]

    Events published through this mock, oldest first.

    Shared event store.

    subscriptions: Map<string, MockOutboxSubscription>

    Live subscriptions keyed by windowId:subId.

    user: string

    Shell-user pubkey used to sign publishes ('' when signed out).