interface Stream<T> {
    getType(): string;
    read(): Promise<StreamResponse<T>>;
}

Type Parameters

Methods

Methods

  • The type of data that the stream carries.

    Returns string

    string

  • Provides the next data chunk in the stream and rejects once all data has been read.

    Returns Promise<StreamResponse<T>>