Skip to content

AIDK API Reference / aidk-kernel / waitForChannelResponse

Function: waitForChannelResponse() ​

ts
function waitForChannelResponse(
   channelName: string, 
   requestId: string, 
   timeoutMs?: number): Promise<ChannelEvent>;

Defined in: packages/kernel/src/channel-helpers.ts:59

Wait for a response on a channel using the current context.

Parameters ​

ParameterType
channelNamestring
requestIdstring
timeoutMs?number

Returns ​

Promise<ChannelEvent>

Throws ​

Error if channels are not available in context

Released under the MIT License.