StreamClient options that accept a pre-existing Connection instance. Useful when you already have a connection (e.g. shared across multiple clients) and want to avoid creating a duplicate one internally.

interface StreamClientOptionsWithConnection {
    cluster: ICluster;
    commitment?: Commitment | ConnectionConfig;
    connection: Connection;
    programId?: string;
    sendScheduler?:
        | PQueue<PriorityQueue, QueueAddOptions>
        | TransactionSchedulingOptions;
}

Properties

cluster: ICluster
commitment?: Commitment | ConnectionConfig
connection: Connection
programId?: string
sendScheduler?:
    | PQueue<PriorityQueue, QueueAddOptions>
    | TransactionSchedulingOptions