-
Notifications
You must be signed in to change notification settings - Fork 24.3k
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 Wrong Control Frame #23825
Comments
This comment has been minimized.
This comment has been minimized.
Any update on this? |
It looks like you are using an older version of React Native. Please update to the latest release, v0.59 and verify if the issue still exists. The "Resolution: Old Version" label will be removed automatically once you edit your original post with the results of running |
There is no ios specefic fixes for websocket in 0.59 so dont want to update unnecessarily. |
I read this somewhere: Could this be possible because my client is getting almost 10+ messages every second and it might have confused the message data and put that in the pong data it sent? |
@hramos Any idea on if this is a possible bug in React native websocket library |
🐛 Bug Report
Very frequent websocket: control frame length > 125 messages recieved by server due to react native websockets
This is probably due to pong sent by react native client as response to ping message.
Close code is 1002
To Reproduce
Connect to websocket and keep recieving messages with server sending pings.
This gives code 1002
Expected Behavior
Should not be giving wrong data in pong and not disconnect very so often.
1002 indicates a protocol error, which may be caused by packet loss (lossy internet connection) or malformed packets sent by your websocket library.
Code Example
Environment
The text was updated successfully, but these errors were encountered: