We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
BotBuilderPlugin
http.Server
1 parent a3d2a0a commit 16fe145Copy full SHA for 16fe145
packages/botbuilder/src/plugin.ts
@@ -1,3 +1,5 @@
1
+import http from 'http';
2
+
3
import {
4
ActivityHandler,
5
CloudAdapter,
@@ -28,6 +30,8 @@ import pkg from '../package.json';
28
30
export type BotBuilderPluginOptions = {
29
31
readonly adapter?: CloudAdapter;
32
readonly handler?: ActivityHandler;
33
+ readonly server?: http.Server;
34
+ readonly skipAuth?: boolean;
35
};
36
37
@Plugin({
@@ -66,7 +70,7 @@ export class BotBuilderPlugin extends HttpPlugin implements ISender {
66
70
protected handler?: ActivityHandler;
67
71
68
72
constructor(options?: BotBuilderPluginOptions) {
69
- super();
73
+ super(options?.server, { skipAuth: options?.skipAuth });
74
this.adapter = options?.adapter;
75
this.handler = options?.handler;
76
}
0 commit comments