Open ticpoi opened 1 year ago
https://github.com/FredrikOseberg/react-chatbot-kit/issues/108
This issue may be related with the same problem with us.
Actions calling from MessageParser works properly, but when I call an action from another part related to another event, botMessage does not appear.
Wanted to share, because they could be related.
Found any solution for Action runs after socket.io response but the botMessage does not appear in component ? @ticpoi
I run into the same issue. Since I'm quite new to react, I cannot debug the issue effectively.
Does anyone have an idea how to fix this?
I would be willing to contribute, but currently have no clue how to fix this.
We are using socket.io to get some more complicated answers from server and the messaging is socket event based.
We defined multiple actions and two of them are to implement the server side responses.
As a sample you can find code below. All codes below are from ActionProvider.js
Socket initializer and the response event to client
This action is for sending the message to server, response is not sync, it will come to the event defined above
This method also defined as an action, it writes the result to console and it works very well. When the event triggered this function runs with correct message
These two actions and the first socket listener works well and I see the result on console properly, but it does not appear on chat window.
What could be the problem? Any one has any experience using with socket.io?
Thanks.