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

fix: Webchat socket instantiation delay #2179

Merged
merged 6 commits into from
Aug 21, 2020
Merged

Conversation

srinaath
Copy link
Contributor

This PR handles the case of webchat's delay in connecting to the socket created for a conversation. As a temporary fix activities are queued and once connected we clear the queue first before sending new messages

Srinaath Ravichandran added 3 commits August 20, 2020 20:10
Signed-off-by: Srinaath Ravichandran <srravich@microsoft.com>
Signed-off-by: Srinaath Ravichandran <srravich@microsoft.com>
Signed-off-by: Srinaath Ravichandran <srravich@microsoft.com>
…nection starts

Signed-off-by: Srinaath Ravichandran <srravich@microsoft.com>
@srinaath srinaath marked this pull request as ready for review August 21, 2020 17:23
Srinaath Ravichandran added 2 commits August 21, 2020 10:27
Signed-off-by: Srinaath Ravichandran <srravich@microsoft.com>
Signed-off-by: Srinaath Ravichandran <srravich@microsoft.com>
@srinaath srinaath merged commit 03a9777 into v4.10.0 Aug 21, 2020
@srinaath srinaath deleted the bugfix/socket-creation-delay branch August 21, 2020 18:05
tonyanziano pushed a commit that referenced this pull request Aug 31, 2020
* Webchat Upgrade and Version number change

Signed-off-by: Srinaath Ravichandran <srravich@microsoft.com>

* Handle change to middleware (#2177)

* Handle change to middleware

* Updated babel preset env

Signed-off-by: Srinaath Ravichandran <srravich@microsoft.com>

* Reverted change to babel

Signed-off-by: Srinaath Ravichandran <srravich@microsoft.com>

Locks updated to pre webchat change

Signed-off-by: Srinaath Ravichandran <srravich@microsoft.com>

Post wechat check

Signed-off-by: Srinaath Ravichandran <srravich@microsoft.com>

Prevent hoisting bf-chatdown

Signed-off-by: Srinaath Ravichandran <srravich@microsoft.com>

* Updated babel preset env

Signed-off-by: Srinaath Ravichandran <srravich@microsoft.com>

* fix: Webchat socket instantiation delay (#2179)

* Updated websocket server code to backup messages if it is not connected
* Refactored more occurances of socket send
* Renaming variables
* Added unit test to make sure backedup messages are cleared before connection starts
* Lint fix

* Updated release date

Signed-off-by: Srinaath Ravichandran <srravich@microsoft.com>

* All tests working

Signed-off-by: Srinaath Ravichandran <srravich@microsoft.com>

Co-authored-by: Srinaath Ravichandran <srravich@microsoft.com>
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.

None yet

2 participants