You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm simulating a Skype call with the Vapi, where the user has the option to the end the call whenever they like. When the user clicks the end call button, I have a function that looks like this
This works fine when the connection with vapi is already established and a call is happening. However, if I click this button before the call starts, vapi does not stop connecting. It gives me the impression that some race conditions are going on. Here you can see a screenshot of the console logs, where the Call has started text is logged when `vapi.on("call-started") event is triggered:
vapi.current.on("call-start",()=>{console.log("Call has started");setCallConnected(true);setCallConnecting(false);});
The outcome of this is that the react-router I have redirects to a different page on firing that button, but vapi is still communicating with us.
The text was updated successfully, but these errors were encountered:
I'm simulating a Skype call with the Vapi, where the user has the option to the end the call whenever they like. When the user clicks the end call button, I have a function that looks like this
This works fine when the connection with
vapi
is already established and a call is happening. However, if I click this button before the call starts,vapi
does not stop connecting. It gives me the impression that some race conditions are going on. Here you can see a screenshot of the console logs, where theCall has started
text is logged when `vapi.on("call-started") event is triggered:The outcome of this is that the
react-router
I have redirects to a different page on firing that button, butvapi
is still communicating with us.The text was updated successfully, but these errors were encountered: