How do I hang up a call on a page reload or refresh?

Use the command ‘onbeforeunload’ with native JavaScript listener to look for reload and refresh changes and call the browser SDKs logout API. This will terminate any ongoing calls. More details about Plivo’s logout API are available in our WebSDK Getting Started guide

Was this article helpful?
0 out of 0 found this helpful
Didn’t find what you are looking for? Create new ticket