stop() function not working
# support
y
const endCall = async () => { await vapi.stop() }
v
@YasH That's correct! If you need to end a call, you can use the
vapi.stop()
function. If there's anything else you'd like to know or any other assistance you need with VAPI, feel free to ask!
You can continue this conversation by mentioning me in the message.
Got it. Tagging @User for additional help.
y
Neither call-end event is triggered and I am still able to converse with the assistant, even after calling stop() method
s
Can you provide me a reproducible repository? @YasH
y
nvm, I made it work. It was a mistake at my end. I had to initialize Vapi() instance outside component scope, otherwise it was creating multiple copies during re-rendering.
4 Views