Skip to content
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

is streaming of messages supported? #322

Open
aandis opened this issue Jun 5, 2023 · 1 comment
Open

is streaming of messages supported? #322

aandis opened this issue Jun 5, 2023 · 1 comment

Comments

@aandis
Copy link

aandis commented Jun 5, 2023

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 -

  • Hello
  • ,
  • how
  • are
  • you
  • ?

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

Is this use case supported?

@DMeganoski
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants