socket.io-client-unity3d icon indicating copy to clipboard operation
socket.io-client-unity3d copied to clipboard

disconnect client

Open farzadi opened this issue 8 years ago • 2 comments

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

farzadi avatar Aug 26 '17 10:08 farzadi

@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.

ppz0th avatar Aug 30 '17 23:08 ppz0th

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

farzadi avatar Sep 01 '17 14:09 farzadi