Detect disconnect Microsoft webchat (Backend botframework)

320 Views Asked by At

Is there a way for the backend to detect the webchat disconnected (ie, user closed page, navigated away, browser quited)?

There seems to be no out-of-the-box event for it. We rolled our own event (store.dispatch({...})) and attached it to the beforeunload event, but since it sends a webrequest, thats not supported.

I was thinking about using navigator.sendBeacon, but that will end up with a lot of unwanted events since that should be used on onVisibilityChanged (thus, webchat can still be active, but on a hidden tab). It seems to me that more people would want to know if the enduser is still active.

Using Botframework

0

There are 0 best solutions below