Just to clarify the above comment, this concept isn't really possible with any internet technology in general, not just Pyramid. On Thursday, February 17, 2022 at 8:35:25 PM UTC-5 Bert JW Regeer wrote:
> No, this is not possible *. > > * Except under some very narrow circumstances, but none that are easy to > use or directly supported in Pyramid > > On Feb 17, 2022, at 13:12, Andrew Free <andrew...@gmail.com> wrote: > > Is there a way to subscribe to any events of a dropped/lost connection? > > For example, if the user closed the browser window in the middle of a > request. I am using pyramid_tm and having a hard time finding a method > for this. I just want to run some code based on the request object state in > the event that the response doesn't make it back to the client and the > transaction does not complete. I've looked into the exception_view_config > and this doesn't appear to help. Would a tween be the best way to handle > this? > Thanks. > > > -- > You received this message because you are subscribed to the Google Groups > "pylons-discuss" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to pylons-discus...@googlegroups.com. > To view this discussion on the web visit > https://groups.google.com/d/msgid/pylons-discuss/cab03e28-c370-4dcb-917a-7b5d36e7a86fn%40googlegroups.com > > <https://groups.google.com/d/msgid/pylons-discuss/cab03e28-c370-4dcb-917a-7b5d36e7a86fn%40googlegroups.com?utm_medium=email&utm_source=footer> > . > > > -- You received this message because you are subscribed to the Google Groups "pylons-discuss" group. To unsubscribe from this group and stop receiving emails from it, send an email to pylons-discuss+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/pylons-discuss/113341b5-529b-4bb8-b1e8-5a3d28ce028dn%40googlegroups.com.