Flow execution context for flow to access the streaming callback and side-channel context data. The context itself is a function, a short-cut for streaming callback.

interface FlowSideChannel<S> {
    context?: ActionContext;
    sendChunk: StreamingCallback<S>;
    (chunk: S): void;
}

Type Parameters

  • S
  • Parameters

    • chunk: S

    Returns void

Properties

Properties

context?: ActionContext

Additional runtime context data (ex. auth context data).

sendChunk: StreamingCallback<S>

Streaming callback (optional).