First welcome message is delayed for 5 seconds
See original GitHub issueVersion
4.10.0
Describe the bug
The first welcome message coming in is being delayed for 5 seconds. Probably due to recent accessibility fix that would delay message up to 5 seconds if their “reply-to-id” activity was not arrived yet.
Steps to reproduce
- Go to MockBot2
- You should see “Hello and welcome!”
Expected behavior
Instead, the “Hello and welcome!” arrive 5 seconds after the Web Socket packet has arrived.
Additional context
[Bug]
Issue Analytics
- State:
- Created 3 years ago
- Comments:20 (15 by maintainers)
Top Results From Across the Web
Windows "randomly" spending WAY too long on Welcome ...
The usual time spent on this screen is some 6 seconds (2 full cycles of the twirling dots animation). Now, the thing is,...
Read more >delay in receiving text messages - Apple Community
It is a noticeable delay swell from my MacBook and my iPhone (my MacBook receives the messages a few seconds first). Hope this...
Read more >How to Fix Delay or Lag When Typing in Windows
A slow computer, faulty USB ports, outdated keyboard drivers, and misconfigured keyboard settings are a few of the reasons for keyboard lag.
Read more >Welcome/Greeting message delay in webchat MS botframework
The very first activities network request (before showing the welcome/greeting message) is usually 2-6s long(mostly it's either 2.5s or 5-6s).
Read more >Troubleshooting Delayed Syslog Messages - LogRhythm
But, of course, before the end of the week, we heard the first report ... on the server confirmed they were arriving a...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
The bug is not fixed for me with the following components. The delay with 5 seconds still persists:
This is the welcome - Bot :
https://github.com/microsoft/BotBuilder-Samples/tree/main/samples/typescript_nodejs/03.welcome-users/src
and this is the frontend with the newest webchat - version and the webchat/join - event:
With this 2 components the message is shown after 5 seconds. But when I use the onEvent - handler in the welcome-users-bot, the message is shown faster and the bug seems to be fixed with this backend - code:
My Suggestion is to change the botbuilder-Samples to use the “onEvent - function” because they are currently not working correctly (even when I use the newest Versions of webchat and botbuilder (4.11.0))
There are replyToId’s that doesn’t seem to exist. This is the case for the first message where the replyToId seems to be in a different format than the other activity - id’d:
“malformed first message replyToId”: AZdTGlUdbui “not malformed replyToId”: F4Mi2hwvvWVJAvq3YuZ19a-o|0000000
Interestingly the problem that we had with the reaction - buttons is solved now after the welcome - message is sent without a delay. This means for me that the reaction -button - problem is in fact related with the delayed welcome - message.