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

disconnect client #22

Open
farzadi opened this issue Aug 26, 2017 · 2 comments
Open

disconnect client #22

farzadi opened this issue Aug 26, 2017 · 2 comments
Assignees

Comments

@farzadi
Copy link

farzadi commented Aug 26, 2017

Hi I have some questions
1.How we can disconnect the client. I want disconnect client when a user has bad internet connection.
2. Some times disconnect message received with a delay in server side. I close game and it receives after some minutes and some times I get message immediately
3. and after I upgrade to your new version I can't send any message why? I can just connect

@ppz0th ppz0th self-assigned this Aug 26, 2017
@ppz0th
Copy link
Contributor

ppz0th commented Aug 30, 2017

@farzadi

  1. We have created an issue on it.
  2. Disconnect event doesn't occur just after the server disconnected. It occurs when the client tries to send or receive a message. (If you don't send or receive anything, you have to wait the socket to send Ping message. The default Ping message interval is 60 secs)
  3. If you send a JSON-formated message, you have to use EmitJson() method. If you send the raw-string message, use Emit() method.

@farzadi
Copy link
Author

farzadi commented Sep 1, 2017

Thank you for your reply
is there any method I can use to get ping value?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants