The Node.js SDK re-exports the WAJS namespace for TypeScript. This reference describes types from WA-JS 4.8.0 . For operations available on a connected Node.js client, see Whatsapp . For functions running inside WhatsApp Web, see the WA-JS browser API .
Interface VoipStackInterface
interface VoipStackInterface { parsers : { parseCallInfo ( json : string ) : any ; [ key : string ]: any } ; type : string ; acceptCall ( audioEnabled : boolean , videoEnabled : boolean , lobbyEntryPoint ?: number , ) : Promise < void > ; endCall ( reason : number , isUserInitiated : boolean ) : Promise < void > ; getCallInfo () : Promise < string > ; handleIncomingSignalingMessage ( args : { peerJid ?: string ; xmlNode : any ; [ key : string ]: any } , ) : Promise < any > ; handleIncomingSignalingOffer ( voipNode : any , ... args : any [] ) : Promise < any > ; previewAndJoinCallLink ( token : string , isVideo : boolean , lobbyEntryPoint ?: number , username ?: string , ) : Promise < number > ; raiseHand ( raised : boolean ) : Promise < void > ; rejectCall () : Promise < void > ; requestVideoUpgrade () : Promise < number > ; sendReaction ( emoji : string ) : Promise < void > ; setCallMute ( muted : boolean ) : Promise < number > ; setCallVideoMute ( muted : boolean ) : Promise < number > ; [ key : string ]: any ; }
Defined in node_modules/@wppconnect/wa-js/dist/whatsapp/functions/getVoipStackInterface.d.ts:23
Properties
parsers
parsers : { parseCallInfo ( json : string ) : any ; [ key : string ]: any }
Defined in node_modules/@wppconnect/wa-js/dist/whatsapp/functions/getVoipStackInterface.d.ts:25
type
type : string
Defined in node_modules/@wppconnect/wa-js/dist/whatsapp/functions/getVoipStackInterface.d.ts:24
Methods
accept Call
acceptCall ( audioEnabled : boolean , videoEnabled : boolean , lobbyEntryPoint ?: number , ) : Promise < void >
Parameters
audioEnabled : boolean
videoEnabled : boolean
OptionallobbyEntryPoint : number
Returns Promise < void >
Defined in node_modules/@wppconnect/wa-js/dist/whatsapp/functions/getVoipStackInterface.d.ts:29
end Call
endCall ( reason : number , isUserInitiated : boolean ) : Promise < void >
Parameters
reason : number
isUserInitiated : boolean
Returns Promise < void >
Defined in node_modules/@wppconnect/wa-js/dist/whatsapp/functions/getVoipStackInterface.d.ts:31
get Call Info
getCallInfo () : Promise < string >
Returns Promise < string >
Defined in node_modules/@wppconnect/wa-js/dist/whatsapp/functions/getVoipStackInterface.d.ts:37
handle Incoming Signaling Message
handleIncomingSignalingMessage ( args : { peerJid ?: string ; xmlNode : any ; [ key : string ]: any } , ) : Promise < any >
Parameters
args : { peerJid ?: string ; xmlNode : any ; [ key : string ]: any }
Returns Promise < any >
Defined in node_modules/@wppconnect/wa-js/dist/whatsapp/functions/getVoipStackInterface.d.ts:40
handle Incoming Signaling Offer
handleIncomingSignalingOffer ( voipNode : any , ... args : any [] ) : Promise < any >
Parameters
voipNode : any
... args : any []
Returns Promise < any >
Defined in node_modules/@wppconnect/wa-js/dist/whatsapp/functions/getVoipStackInterface.d.ts:39
preview And Join Call Link
previewAndJoinCallLink ( token : string , isVideo : boolean , lobbyEntryPoint ?: number , username ?: string , ) : Promise < number >
Parameters
token : string
isVideo : boolean
OptionallobbyEntryPoint : number
Optionalusername : string
Returns Promise < number >
Defined in node_modules/@wppconnect/wa-js/dist/whatsapp/functions/getVoipStackInterface.d.ts:38
raise Hand
raiseHand ( raised : boolean ) : Promise < void >
Returns Promise < void >
Defined in node_modules/@wppconnect/wa-js/dist/whatsapp/functions/getVoipStackInterface.d.ts:36
reject Call
rejectCall () : Promise < void >
Returns Promise < void >
Defined in node_modules/@wppconnect/wa-js/dist/whatsapp/functions/getVoipStackInterface.d.ts:30
request Video Upgrade
requestVideoUpgrade () : Promise < number >
Returns Promise < number >
Defined in node_modules/@wppconnect/wa-js/dist/whatsapp/functions/getVoipStackInterface.d.ts:34
send Reaction
sendReaction ( emoji : string ) : Promise < void >
Returns Promise < void >
Defined in node_modules/@wppconnect/wa-js/dist/whatsapp/functions/getVoipStackInterface.d.ts:35
set Call Mute
setCallMute ( muted : boolean ) : Promise < number >
Returns Promise < number >
Defined in node_modules/@wppconnect/wa-js/dist/whatsapp/functions/getVoipStackInterface.d.ts:32
set Call Video Mute
setCallVideoMute ( muted : boolean ) : Promise < number >
Returns Promise < number >
Defined in node_modules/@wppconnect/wa-js/dist/whatsapp/functions/getVoipStackInterface.d.ts:33
The native VoIP stack. Every method acts on the single current call.
Methods returning a number return a native status, where
0means OK.Whatsapp
WAWebVoipStackInterfaceWeb