Skip to content

EventStreamEncoding

1 exports Added in v1.0.0 Source

Other

makeChannel

Added in v1.0.0 Source

An event stream encoding parser.

See the [AWS Documentation](https://docs.aws.amazon.com/lexv2/latest/dg/event-stream-encoding.html) for more information.

Signature

declare const makeChannel: <A, I, R, IE, Done>(
  schema: Schema.Schema<A, I, R>,
  options?: {
    readonly bufferSize?: number;
  },
) => Channel.Channel<
  Chunk.Chunk<A>,
  Chunk.Chunk<Uint8Array<ArrayBufferLike>>,
  IE | ParseError,
  IE,
  void,
  Done,
  R
>;