How to use the botframework-streaming.NamedPipeServer function in botframework-streaming

To help you get started, we’ve selected a few botframework-streaming 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 microsoft / botbuilder-js / libraries / botbuilder / src / botFrameworkAdapter.ts View on Github external
public async useNamedPipe(logic: (context: TurnContext) => Promise, pipeName: string = defaultPipeName): Promise {
        if (!logic) {
            throw new Error('Bot logic needs to be provided to `useNamedPipe`');
        }

        this.logic = logic;

        this.streamingServer = new NamedPipeServer(pipeName, this);
        await this.streamingServer.start();
    }

botframework-streaming

Streaming library for the Microsoft Bot Framework

MIT
Latest version published 27 days ago

Package Health Score

95 / 100
Full package analysis