A common interface for a StreamClient to operate a stream from any HTTPStreamClient

interface StreamAdapter {
    close: (() => void);
    read: AsyncGenerator<string, any, unknown>;
}

Properties

Properties

close: (() => void)
read: AsyncGenerator<string, any, unknown>