Wednesday, May 31, 2017

Re: Restricting the user from closing the browser tab so that the server side APIs are called.

On Wednesday 31 May 2017 14:05:14 Rahul Paul wrote:


> We are working on a django project in which we are developing a two

> way audio visual solution for the users. Now we have certain set of

> APIs that need to be called from JavaScript through ajax request when

> user ends the call through our end-call button.


So fix that design flaw. If the user experiences a power outage or loss of internet connectivity, no JS / browser hacking will save you.


As with any 2-way connection, code for disconnects through timeouts, then do your cleanups.



Melvyn Sopacua

No comments:

Post a Comment