Skip to content

Documentation / @agentick/kernel / subscribeChannel

Function: subscribeChannel() ​

subscribeChannel(channelName, handler): () => void

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

Subscribe to events on a channel using the current context.

Parameters ​

channelName ​

string

handler ​

(event) => void

Returns ​

Unsubscribe function

(): void

Returns ​

void

Throws ​

Error if channels are not available in context

Released under the ISC License.