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

Empty string was return when the event data is a '\n' #50

Open
lxmfly123 opened this issue Jul 7, 2023 · 4 comments
Open

Empty string was return when the event data is a '\n' #50

lxmfly123 opened this issue Jul 7, 2023 · 4 comments

Comments

@lxmfly123
Copy link

No description provided.

@lxmfly123 lxmfly123 changed the title Empty string was return when the event data is a '\n Empty string was return when the event data is a '\n' Jul 7, 2023
@lxmfly123
Copy link
Author

When server just sends '\n' among other events, the parsed event.data is just a empty string ''. For example:

from server:

[{id:1,data:'a'}, {id:2,data:'\n'}, {id:1,data:'c'}, ]

parsed messages:

[{id:1,data:'a'}, {id:2,data:''}, {id:1,data:'c'}, ]

the second parsed event data is different from server's.

@lxmfly123
Copy link
Author

这个库似乎没人管的样子

@peterdresslar
Copy link

@lxmfly123 So it would seem.

@att1106
Copy link

att1106 commented Apr 10, 2024

is there any solution for this issue here yet?

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

3 participants