Skip to content
This repository was archived by the owner on Jan 5, 2026. It is now read-only.

fix: Webchat socket instantiation delay#2179

Merged
srinaath merged 6 commits intov4.10.0from
bugfix/socket-creation-delay
Aug 21, 2020
Merged

fix: Webchat socket instantiation delay#2179
srinaath merged 6 commits intov4.10.0from
bugfix/socket-creation-delay

Conversation

@srinaath
Copy link
Copy Markdown
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 <[email protected]>
Signed-off-by: Srinaath Ravichandran <[email protected]>
…nection starts

Signed-off-by: Srinaath Ravichandran <[email protected]>
@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 <[email protected]>
Signed-off-by: Srinaath Ravichandran <[email protected]>
@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 <[email protected]>

* Handle change to middleware (#2177)

* Handle change to middleware

* Updated babel preset env

Signed-off-by: Srinaath Ravichandran <[email protected]>

* Reverted change to babel

Signed-off-by: Srinaath Ravichandran <[email protected]>

Locks updated to pre webchat change

Signed-off-by: Srinaath Ravichandran <[email protected]>

Post wechat check

Signed-off-by: Srinaath Ravichandran <[email protected]>

Prevent hoisting bf-chatdown

Signed-off-by: Srinaath Ravichandran <[email protected]>

* Updated babel preset env

Signed-off-by: Srinaath Ravichandran <[email protected]>

* 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 <[email protected]>

* All tests working

Signed-off-by: Srinaath Ravichandran <[email protected]>

Co-authored-by: Srinaath Ravichandran <[email protected]>
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants