-
-
Notifications
You must be signed in to change notification settings - Fork 82
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
Stream end encountered #17
Comments
This is NGiNX issue. |
Always facing this issue. Automatic disconnected after 30-40 seconds
|
@SSUS31 Maybe @gloryluu will tell you how did he/she fix the problem. This is not related to StompClientLib. |
As I remember, it related to the heart beat. Workaround is to ping pong the server every 30s to maintain the connection |
Can you show please how to do it. |
There're 2 ways to fix in my situation, either:
or 2/ You ask server to send you a ping ( heartbeat - built in config) and let the lib handle over all for you. |
Hi @gloryluu, how did you ping the server using this library? I can't seem to find out how to do this. |
i called this with a |
Oh, I see, that works thank you. Another thing I tried is calling In my case calling it every 20 seconds seems inefficient as the backend doesn't kick us out, (i.e socket disconnects) until after a long time (usually over a minute). So I only try to reconnect when the socket disconnects. |
Sometime I get disconnect issue because of stream end encountered error.
The server is still in operation. I think this comes from SocketRocket. Do you have any idea about this issue?
The text was updated successfully, but these errors were encountered: