Documentation
    Preparing search index...

    Interface MockRelayState

    In-memory state of the relay mock.

    const state = createMockRelayService().mock.state();
    state.subscriptions.size === 0;
    interface MockRelayState {
        plaintext: Map<string, string>;
        published: NostrEvent[];
        store: MockNostrStore;
        subscriptions: Map<string, MockRelaySubscription>;
        user: string;
    }
    Index

    Properties

    plaintext: Map<string, string>

    Plaintext of events published through relay.publishEncrypted, by event id.

    published: NostrEvent[]

    Events published through this mock, oldest first.

    Shared event store.

    subscriptions: Map<string, MockRelaySubscription>

    Live subscriptions keyed by windowId:subId.

    user: string

    Shell-user pubkey used to "sign" templates.