botbuilder-timeoutwarning-middleware

0.0.2 • Public • Published

botbuilder-timeoutwarning-middleware

Purpose

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.

Installation

  • install by executing npm install botbuilder-timeoutwarning-middleware in your working directory.

Usage

  • import using require statement:

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.

Changelog

2018/02/22 v0.0.1

  • Initial release

Repo on github.com

https://github.com/bashdx/botbuilder-longrun-warning-middleware

Readme

Keywords

none

Package Sidebar

Install

npm i botbuilder-timeoutwarning-middleware

Weekly Downloads

4

Version

0.0.2

License

ISC

Unpacked Size

3.48 kB

Total Files

3

Last publish

Collaborators

  • bashdx