@japofc/baileys - v2.4.7
    Preparing search index...

    Class VoipClient

    Audio-only WhatsApp voice-call client (WASM call stack + WebRTC relay). Emits 'incoming-call' / 'outgoing-call' / 'call-ended'.

    Hierarchy

    • EventEmitter
      • VoipClient
    Index
    • Parameters

      • phoneNumber: string
      • Optionalopts: Record<string, any>

      Returns Promise<any>

    • Parameters

      • existingSock: any

      Returns Promise<void>

    • Parameters

      • phoneNumber: string
      • OptionaldeviceJids: string[]

      Returns Promise<any>

    • Parameters

      • token: string
      • Optionalopts: Record<string, any>

      Returns any

    • Parameters

      • callId: string
      • callFrom: string
      • Optionaloptions: { text?: string }

      Returns Promise<any>

    • Parameters

      • Optionaloverrides: Record<string, any>

      Returns Promise<any>

    • Parameters

      • peerJid: string

      Returns Promise<any>

    • Swap the active call's uplink audio source mid-call. Throws when no call is active.

      Parameters

      • source: string | { data: Buffer; ext?: string }

      Returns boolean