Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add streaming protocol support #183

Merged
merged 90 commits into from
Mar 4, 2020
Merged

Add streaming protocol support #183

merged 90 commits into from
Mar 4, 2020

Conversation

ckkashyap
Copy link
Collaborator

@ckkashyap ckkashyap commented May 29, 2019

DirectLine constructor
streamingWebSocket is introduced. This parameter can be used to tell DirectLine to use the streaming protocol.

postActivity and postMessageWithAttachments
Both methods now use the streaming protocol to send messages if there is a streaming connection.

**Tests
Happy paths for posting activities, activities with attachments and receiving welcome messages have automated tests

Unhappy paths of unable to reconnect/connection break were manually tested. The reconnect function has not been tested. I will update its implementation during the review.

src/directLineStreaming.ts Outdated Show resolved Hide resolved
src/directLineStreaming.ts Outdated Show resolved Hide resolved
src/directLineStreaming.ts Outdated Show resolved Hide resolved
src/directLineStreaming.ts Show resolved Hide resolved
src/directLineStreaming.ts Show resolved Hide resolved
src/directLineStreaming.ts Outdated Show resolved Hide resolved
src/directLineStreaming.ts Outdated Show resolved Hide resolved
src/directLineStreaming.ts Outdated Show resolved Hide resolved
src/directLineStreaming.ts Outdated Show resolved Hide resolved
src/directLineStreaming.ts Outdated Show resolved Hide resolved
src/directLineStreaming.ts Outdated Show resolved Hide resolved
@compulim
Copy link
Collaborator

compulim commented Feb 5, 2020

Please do some testing in IE11.

There is a blocking bug on botframework-streaming because they are publishing non-ES5 code to NPM. microsoft/botbuilder-js#1670

@cwhitten cwhitten merged commit e84d125 into master Mar 4, 2020
@cwhitten cwhitten deleted the ckk/protocoljs branch March 4, 2020 23:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

7 participants