There is no doubt about the fact that browser disconnect is unreliable and difficult to trace in real time. The level of inconsistency and the particularities of possible disconnection detection differ from a browser to another.
A heartbeat script causes the web browser to send a signal to the server at regular intervals to advise that a page from that server is still being displayed. There are numerous examples to be found, with various implementations <http://javascriptexample.net/ajax09.php> of the heartbeat principle. Detecting that a channel is still alive, as sketched above, is different from trying to keep it alive by programmatic means. Sending regular signals from the server might not help when a token expires, to name an example. You need to decide what architecture suits best your needs. Firebase Database pricing might seem high at a first look, but one has to to take into consideration the total usage volume planned. In comparison to other solutions, it may prove advantageous in that context. -- You received this message because you are subscribed to the Google Groups "Google App Engine" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at https://groups.google.com/group/google-appengine. To view this discussion on the web visit https://groups.google.com/d/msgid/google-appengine/2cb8569a-d67e-4d26-a0e6-4c1eb05c8781%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
