At some point, chrome rolled out a change that no XHR was sent during beforeunload and unload events, this was in Chrome 73. There was pushback and they quickly disabled that and now it is planned for Chrome 78.
The recommended approach is to use sendBeacon, which is available on all major browsers nowadays.
Are there any plans on changes to face that issue? Is there a way for the last presence unavailable to be sent using Navigator.sendBeacon() when using bosh?
https://stackoverflow.com/questions/55676319/ajax-synchronous-request-failing-in-chrome
https://developer.mozilla.org/en-US/docs/Web/API/Beacon_API/Using_the_Beacon_API
https://bugs.chromium.org/p/chromium/issues/detail?id=952452
At some point, chrome rolled out a change that no XHR was sent during beforeunload and unload events, this was in Chrome 73. There was pushback and they quickly disabled that and now it is planned for Chrome 78.
The recommended approach is to use sendBeacon, which is available on all major browsers nowadays.
Are there any plans on changes to face that issue? Is there a way for the last presence unavailable to be sent using
Navigator.sendBeacon()when using bosh?https://stackoverflow.com/questions/55676319/ajax-synchronous-request-failing-in-chrome
https://developer.mozilla.org/en-US/docs/Web/API/Beacon_API/Using_the_Beacon_API
https://bugs.chromium.org/p/chromium/issues/detail?id=952452