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 ​
| Parameter | Type |
|---|---|
channelName | string |
event | Omit<ChannelEvent, "channel"> |
Returns ​
void
Throws ​
Error if channels are not available in context