Skip to content

AIDK API Reference / aidk-kernel / tryGetChannel

Function: tryGetChannel() ​

ts
function tryGetChannel(channelName: string): Channel | undefined;

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

Try to get a channel from the current context (returns undefined if not available).

Parameters ​

ParameterType
channelNamestring

Returns ​

Channel | undefined

Released under the MIT License.