Metatell AI Bot - v0.0.10
    Preparing search index...

    Interface for channel service

    Implements

    Index

    Constructors

    Methods

    • Push a message to a channel and wait for response

      Type Parameters

      • T = unknown

      Parameters

      Returns Promise<T>

    • Subscribe to channel events

      Parameters

      • channel: Channel
      • event: string
      • handler: (payload: unknown) => void

      Returns () => void

    • Wait for a specific event on a channel

      Type Parameters

      • T = unknown

      Parameters

      • channel: Channel
      • event: string
      • OptionaltimeoutMs: number

      Returns Promise<T>