-
Notifications
You must be signed in to change notification settings - Fork 739
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
Any logs generated by Ratchet for debugging #1023
Comments
Hey @varun7952, thanks for bringing this up 👍
There is no logging in Ratchet by default, this would otherwise cause a lot of overhead for users who aren't interested in a logging mechanism. Ratchet itself is a multi-layered project, so you could also create and add your own logging adapter to see what's happening behind the scenes.
It's definitely odd that User A gets disconnected, this means that either client or server closes the connection, but based on the fact that this is happening when a second user connects, my guess would be that it's server side related. I don't see anything obvious in your code base and the only time you call a |
@SimonFrings Thanks for the response. Is there any way to get the reason for disconnection at onClose? |
|
I am connecting to the websocket from android app with the help of okhttp library. I tried to look for the logs to debug when some user disconnects automatically. The android app okhttp shows this at onFailure, that is not enough to debug the code why user get disconnected.
This is websocket server code (Ratchet Websocket Library). From android app i can connect with the server but i think there is some issue in this code.
What actually happening :-
When User A Connect with the server onOpen calls as expected and successfully get connected but after few seconds when User B send request to connect to the websocket server, User B get connect and kicks User A out (Disconnect User A) from the server. Can you check if there is any issue with this code? or how i can debug the issue.
The text was updated successfully, but these errors were encountered: