Skip to content

Documentation / @agentick/core / publishChannel

Function: publishChannel() ​

publishChannel(channelName, event): void

Defined in: kernel/src/channel-helpers.ts:28

Publish an event to a channel using the current context.

Parameters ​

channelName ​

string

event ​

Omit<ChannelEvent, "channel">

Returns ​

void

Throws ​

Error if channels are not available in context

Released under the ISC License.