You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
bot chat connection status will not be updated if network disconnect, it seems subscribe event not trigger, any ideas? #163
changed the title [-]bot connection status will not be updated if network disconnect, it seems subscribe event not trigger, any ideas? [/-][+]bot chat connection status will not be updated if network disconnect, it seems subscribe event not trigger, any ideas? [/+]on Feb 26, 2019
We are trying to add an UI interaction to indicate health status of directlineline connection. It seems DL does not provide a disconnected status for subscribing. Is there any event that would fire when DL connection become disconnected?
this.connectionStatusSubscription = this.botConnection.connectionStatus$.subscribe(
connectionStatus => {
var status = '';
switch (connectionStatus) {
case ConnectionStatus.Uninitialized:
status = ChatConnectionStatus.Uninitialized.value;
break;
case ConnectionStatus.Connecting:
status = ChatConnectionStatus.Connecting.value;
break;
case ConnectionStatus.Online:
status = ChatConnectionStatus.Online.value;
break;
case ConnectionStatus.ExpiredToken:
status = ChatConnectionStatus.ExpiredToken.value;
break;
case ConnectionStatus.FailedToConnect:
status = ChatConnectionStatus.FailedToConnect.value;
break;
case ConnectionStatus.Ended:
status = ChatConnectionStatus.Ended.value;
break;
default:
status = ChatConnectionStatus.Unexpected.value;
break;
}
// Dispatch to change directline indicator status shown.
}
);
Activity
[-]bot connection status will not be updated if network disconnect, it seems subscribe event not trigger, any ideas? [/-][+]bot chat connection status will not be updated if network disconnect, it seems subscribe event not trigger, any ideas? [/+]blrchen commentedon Mar 4, 2019
We are trying to add an UI interaction to indicate health status of directlineline connection. It seems DL does not provide a disconnected status for subscribing. Is there any event that would fire when DL connection become disconnected?
cwhitten commentedon Feb 26, 2021
Loading up for discussion/prioritization in an upcoming release