Skip to content

Commit

Permalink
move streaming constants into streaming/
Browse files Browse the repository at this point in the history
  • Loading branch information
stevengum committed Dec 16, 2019
1 parent 1380be6 commit ec07d7e
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 9 deletions.
9 changes: 1 addition & 8 deletions libraries/botbuilder/src/botFrameworkAdapter.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ import { AuthenticationConfiguration, AuthenticationConstants, ChannelValidation
import { INodeBuffer, INodeSocket, IReceiveRequest, ISocket, IStreamingTransportServer, NamedPipeServer, NodeWebSocketFactory, NodeWebSocketFactoryBase, RequestHandler, StreamingResponse, WebSocketServer } from 'botframework-streaming';

import { InvokeResponse, WebRequest, WebResponse } from './interfaces';
import { StreamingHttpClient, TokenResolver } from './streaming';
import { defaultPipeName, GET, POST, MESSAGES_PATH, StreamingHttpClient, TokenResolver, VERSION_PATH } from './streaming';

export enum StatusCodes {
OK = 200,
Expand Down Expand Up @@ -102,13 +102,6 @@ export const USER_AGENT: string = `Microsoft-BotFramework/3.1 BotBuilder/${ pjso
const OAUTH_ENDPOINT = 'https://api.botframework.com';
const US_GOV_OAUTH_ENDPOINT = 'https://api.botframework.azure.us';

// Streaming-specific constants
const defaultPipeName = 'bfv4.pipes';
const VERSION_PATH: string = '/api/version';
const MESSAGES_PATH: string = '/api/messages';
const GET: string = 'GET';
const POST: string = 'POST';

// This key is exported internally so that the TeamsActivityHandler will not overwrite any already set InvokeResponses.
export const INVOKE_RESPONSE_KEY: symbol = Symbol('invokeResponse');

Expand Down
2 changes: 1 addition & 1 deletion libraries/botbuilder/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ export {
WebResponse
} from './interfaces';
export * from './skills';
export * from './streaming';
export { StreamingHttpClient, TokenResolver } from './streaming';
export * from './teamsActivityHandler';
export * from './teamsActivityHelpers';
export * from './teamsInfo';
Expand Down
13 changes: 13 additions & 0 deletions libraries/botbuilder/src/streaming/constants.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
/**
* @module botbuilder
*/
/**
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License.
*/

export const defaultPipeName = 'bfv4.pipes';
export const VERSION_PATH: string = '/api/version';
export const MESSAGES_PATH: string = '/api/messages';
export const GET: string = 'GET';
export const POST: string = 'POST';
1 change: 1 addition & 0 deletions libraries/botbuilder/src/streaming/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,6 @@
* Licensed under the MIT License.
*/

export * from './constants';
export * from './streamingHttpClient';
export * from './tokenResolver';

0 comments on commit ec07d7e

Please sign in to comment.