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

[Fix] fix bug ignoring subsequent data in stream event #18

Merged
merged 1 commit into from
Mar 19, 2023

Conversation

toshi17
Copy link
Contributor

@toshi17 toshi17 commented Mar 19, 2023

Currently, when a stream data event contains multiple data, only the first data is being parsed and processed, while the rest are being ignored. This results in incomplete processing of the stream data event.

Perhaps this issue #16 is caused by the same thing.
I had the same situation and when I checked the behavior in flutter web, I found the aforementioned problem.

The bug was caused by an incorrect return statement in the parsing code for stream data events, which caused the code to exit prematurely and prevented the processing of subsequent data in the event. To fix this, I replaced the return statement with a continue statement, allowing the code to continue processing subsequent data in the stream data event.

Sorry if this is hard to understand since it is a machine translation.
Please review and let me know if you have any feedback or suggestions.
Thank you.

@anasfik
Copy link
Owner

anasfik commented Mar 19, 2023

this makes since.

Thank you for the contribution.

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

Successfully merging this pull request may close these issues.

2 participants