Skip to content

AIDK API Reference / aidk-kernel / getChannel

Function: getChannel() ​

ts
function getChannel(channelName: string): Channel;

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

Get a channel from the current context.

Parameters ​

ParameterType
channelNamestring

Returns ​

Channel

Throws ​

Error if channels are not available in context

Released under the MIT License.