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

fixed the issue of not handling when the user gets disconnected #35

Merged
merged 2 commits into from
May 22, 2016

Conversation

sanchitgarg1909
Copy link
Contributor

I used your demo app to create my own socket.io application which is when I found an issue in your app. When a user gets disconnected while chatting due to internet connection etc, even after socket is connected back the user cannot send any messages. In my commit I have handled that error. If you permit my commit to merge with yours it would help people a lot. Thank you for the demo app.

@Override
public void run() {
if(!isConnected) {
mSocket.emit("add user", mUsername);
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think we have to check if mUsername exists ? since it would be null before login.

@sanchitgarg1909
Copy link
Contributor Author

Yes you are correct, I inserted the check to see if username exists.

@nkzawa nkzawa merged commit 972783c into nkzawa:master May 22, 2016
@nkzawa
Copy link
Owner

nkzawa commented May 22, 2016

thanks!!

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

Successfully merging this pull request may close these issues.

2 participants