This package provides a middleware for the Microsoft Botbuilder v4 JavaScript SDK. The purpose of this middleware is to indicate long-running activities. The means of indication can be customized by the client application.
- install by executing npm install botbuilder-timeoutwarning-middlewarein your working directory.
- import using requirestatement:
const timeoutwarning = require('botbuilder-timeoutwarning-middleware');
- call bot.use()and provide a callback and (optionally) a time-out threshold in milli-seconds:
bot.use((context) => { //your callback goes here }, 10000);
HINT: in order to have most accurate measuring, you should include this middleware first via bot.use() before any other middleware.
2018/02/22 v0.0.1
- Initial release
https://github.com/bashdx/botbuilder-longrun-warning-middleware