Add a callback function for all events
Can be used instead of addEventListener
NoteL Event thrown through this support
does not include the ziwo
suffix nor the _jorel-dialog-state
prefix
connect authenticate the user over Ziwo & our communication socket This function is required before proceeding with calls
Disconnect user from our socket and stop the protocol
Opt out of Google Stun
Start a call using click2call return the call ID if the call is successful or undefined if an issue occured
Get the active call or undefined if no active call
Answer the active call
Hangup the active call
In case of pending attended call: unhold and set the primary call as active
Mute the active call
Unmute the active call
Hold the active call
Unhold the active call
Stop the active call and directly forward the correspondant to @destination
Hold the active call
Start a new call with @destination
Stop the active call and directly forward the initial correspondant to the new correspondant
Stop the active call
Unhold and set the initial call as active
Generated using TypeDoc
Ziwo Client allow your to setup the environment. It will setup the WebRTC, open the WebSocket and do the required authentications
See README#Ziwo Client to see how to instanciate a new client. Make sure to wait for
connected
event before doing further action.Once the client is instancied and you received the
connected
event, Ziwo is ready to be used and you can start a call by usingstartCall(phoneNumber:string)
or simply wait for events to proc.