aimpress-chatbot/node_modules/botbuilder/_ts3.4/lib/botFrameworkHttpAdapter.d.ts
“SamoilenkoVadym” 55445dbc86
Some checks failed
Build and deploy Node.js app to Azure Web App - ChatBot2222 / build (push) Has been cancelled
Build and deploy Node.js app to Azure Web App - ChatBot2222 / deploy (push) Has been cancelled
Deploy bot to Azure
2025-04-27 19:55:19 +01:00

25 lines
1.1 KiB
TypeScript

import { INodeBuffer, INodeDuplex, INodeSocket } from 'botframework-streaming';
import { Request, Response } from './interfaces';
import { TurnContext } from 'botbuilder-core';
/**
* @deprecated Use `CloudAdapter` instead.
* BotFrameworkHttpAdapter is the interface that describes a Bot Framework
* adapter that operates on HTTP requests.
*/
export interface BotFrameworkHttpAdapter {
/**
* Process a web request by applying a logic callback function.
*/
process(req: Request, res: Response, logic: (context: TurnContext) => Promise<void>): Promise<void>;
/**
* Handle a web socket connection by applying a logic callback function to
* each streaming request.
*/
process(req: Request, socket: INodeSocket, head: INodeBuffer, logic: (context: TurnContext) => Promise<void>): Promise<void>;
/**
* Handle a web socket connection by applying a logic callback function to
* each streaming request.
*/
process(req: Request, socket: INodeDuplex, head: INodeBuffer, logic: (context: TurnContext) => Promise<void>): Promise<void>;
}
//# sourceMappingURL=botFrameworkHttpAdapter.d.ts.map