prorm API Reference
    Preparing search index...

    Interface NsqStoreOptions

    Connection options for NsqStore.

    interface NsqStoreOptions {
        nsqdHost?: string;
        nsqdPort?: number;
        readerOptions?: any;
        client?: any;
    }
    Index
    nsqdHost?: string

    nsqd host for the producer Writer. Defaults to '127.0.0.1'.

    nsqdPort?: number

    nsqd TCP port for the producer Writer. Defaults to 4150.

    readerOptions?: any

    Reader connection options: typically { lookupdHTTPAddresses } or { nsqdTCPAddresses }. Passed straight to every Reader.

    client?: any

    A pre-built nsqjs module (or a stand-in exposing Writer and Reader constructors). When provided, connect() adopts it and does not require('nsqjs') — used for injecting mocks in tests.