Class WebChatChannelAdapter

Channel adapter for web-based chat using HTTP/WebSocket.

Uses dynamic import for the ws package so it is only required at runtime when the adapter is actually initialized.

Capabilities: text, rich_text, images, buttons, typing_indicator, read_receipts.

Hierarchy (view full)

Constructors

Methods

  • Parameters

    • conversationId: string

    Returns Promise<{
        name?: string;
        memberCount?: number;
        isGroup: boolean;
        metadata?: Record<string, unknown>;
    }>

Properties

status: ChannelConnectionStatus = 'disconnected'
connectedSince: undefined | string
errorMessage: undefined | string
platformInfo: Record<string, unknown> = {}
auth: undefined | ChannelAuthConfig & {
    params?: WebChatAuthParams;
}

Stored auth config so reconnect() can re-use it.

retryConfig: RetryConfig
platform: ChannelPlatform = 'webchat'

Platform this adapter serves.

displayName: "WebChat" = 'WebChat'

Human-readable display name (e.g., "WhatsApp Business").

capabilities: readonly ChannelCapability[] = ...

Declared capabilities of this adapter.