Wolox / react-chat-widget

Awesome chat widget for your React App
MIT License
1.46k stars 456 forks source link

is streaming of messages supported? #322

Open aandis opened 1 year ago

aandis commented 1 year ago

I want to build a chat ui where the response is streamed from the server via web sockets one word at a time. As an example, if user sent the message Hello, and the response from the server is Hello, how are you?, it will be sent from the server as six different messages -

and I'd like to display these messages in the response as they are received in realtime.

Is this use case supported?

DMeganoski commented 1 year ago

You could come up with your own solution for this, keep a record of the ongoing message ID and just delete/replace it with each response.