Interface Stream

interface Stream {
    name: string;
    alternates(): Promise<StreamAlternate[]>;
    best(): Promise<Stream>;
    deleteMessage(seq, erase?): Promise<boolean>;
    getConsumer(name?): Promise<Consumer>;
    getConsumerFromInfo(ci): Consumer;
    getMessage(query): Promise<StoredMsg>;
    info(cached?, opts?): Promise<StreamInfo>;
}

Properties

name: string

Methods

  • Returns Promise<Stream>

  • Parameters

    • seq: number
    • Optional erase: boolean

    Returns Promise<boolean>