-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
Greeting Message Web Chat v4 - Sending events from bot #1397
Comments
The code looks good to me. Web Chat v4 is still using the very same version of DirectLineJS. Will investigate the code. But since I am locked down on something else more urgent (#1336), my response may be slow. p.s. we are drafting PR #1286 to make the "send welcome event" story more standard. You can peek into it for details. |
We got same error on sending greeting message, with botchatDebug enabled and override DirectLine.end(), we found that seems the DirectLine conversation ended on creating WebSocket connection. We reverted to v3 since we did not find solution for this problem. |
@xinfli if there are any JavaScript errors inside the business logic of Web Chat, we will close the Direct Line connection. This is a new behavior. I believe the code that call |
@compulim Thanks, I guess it's caused we transfer customized value in activity and caused this problem, but: 1. same code works fine with v3; 2. in v4 it failed random, sometime it works. And, how can we catch the error caused the DirectLine connection closed? Below is our code:
|
Great! waiting for the new release :-) |
It's coming, in Travis CI now. |
how to send the post activity for any event type from webchatV4? please provide me the exact syntax and dummy code. |
I am also looking for. Can u help me with the syntax |
Hi,
I am migrating from Webchat v3 to Webchat v4, and I am having problems when I post an event activity for welcome trigger. I was using the workable solution given in official botframework blog:
https://blog.botframework.com/2018/07/12/how-to-properly-send-a-greeting-message-and-common-issues-from-customers/
But when I try to do it in Webchat v4 React version, using the next code:
the event arrives to the bot correctly, but I get a "conversation ended" error in the web browser console, and the messages don't arrive to the client.
Anybody can gimme an example about how to do it correctly in v4?
Thanks in advance!
The text was updated successfully, but these errors were encountered: