How to use the botframework-directlinejs.ConnectionStatus.Ended function in botframework-directlinejs

To help you get started, we’ve selected a few botframework-directlinejs examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github aiden / autobot / src / clients / botframework_client.ts View on Github external
}
            if (this.onReadyCb) {
              this.onReadyCb();
            }
            break;
          case ConnectionStatus.ExpiredToken:
            // last operation errored out with an expired token. Your app should supply a new one.
            console.log('DirectLine error: token expired.');
            process.exit(1);
            break;
          case ConnectionStatus.FailedToConnect:
            // the initial attempt to connect to the conversation failed. No recovery possible.
            console.log('DirectLine error: failed to connect.');
            process.exit(1);
            break;
          case ConnectionStatus.Ended:
            // the bot ended the conversation
            break;
        }
      });
  }