prorm API Reference
    Preparing search index...

    Interface NatsStoreOptions

    Connection options for NatsStore.

    interface NatsStoreOptions {
        servers?: string | string[];
        token?: string;
        user?: string;
        pass?: string;
        client?: NatsConnectionLike;
    }
    Index
    servers?: string | string[]

    One or more NATS server URLs (e.g. nats://localhost:4222). Passed straight through to the driver's connect({ servers }).

    token?: string

    Token auth.

    user?: string

    Username for user/password auth.

    pass?: string

    Password for user/password auth.

    client?: NatsConnectionLike

    A pre-built NatsConnection. When provided, connect() adopts it directly and never calls require('nats') — this is how tests inject a mock connection without the real driver or a network.