-
-
Notifications
You must be signed in to change notification settings - Fork 255
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
WebSocket : Sending a space character (
) receives 0
#379
Comments
@quentint example: |
Thanks for your feedback! Unfortunately I'm writing the server part of the app, but the client one uses a very old standard, and I can't change a thing about it, so I can't decide to format messages differently 😕 |
@quentint |
But I cannot differentiate spaces wrongfully converted to 0, and actual zeroes. What do you mean by an implementation problem? Did you locate it? |
Fixed in 0.8.7. Feels free to re-open if the problem stills persists |
When sending a space character (
) to a WebSocket, the received message is
0
. I've added tests in a fork to showcase that:https://github.com/quentint/elysia/blob/main/test/ws/message.test.ts#L5-L22
The
fails. I would like to help fix this but I've looked around and didn't find where this could come from. Any pointers appreciated 😉
'Hello!'
and'0'
pass, but theThe text was updated successfully, but these errors were encountered: