socket.io-client-unity3d
socket.io-client-unity3d copied to clipboard
disconnect client
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
- We have created an issue on it.
- 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)
- If you send a JSON-formated message, you have to use EmitJson() method. If you send the raw-string message, use Emit() method.
Thank you for your reply is there any method I can use to get ping value?