Skip to content

AIDK API Reference / aidk-kernel / publishChannel

Function: publishChannel() ​

ts
function publishChannel(channelName: string, event: Omit<ChannelEvent, "channel">): void;

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

Publish an event to a channel using the current context.

Parameters ​

ParameterType
channelNamestring
eventOmit<ChannelEvent, "channel">

Returns ​

void

Throws ​

Error if channels are not available in context

Released under the MIT License.