pomelo icon indicating copy to clipboard operation
pomelo copied to clipboard

Auto Disconnect User

Open renatodex opened this issue 11 years ago • 1 comments

Im trying to create a setTimeout event in Pomelo to ping for all users and check its latence to allow the server to autodisconnect users who had connection problems / client crash.

However, i dont know if Pomelo has some built in feature to do this better.

Can someone help me?

renatodex avatar Feb 17 '15 16:02 renatodex

Pomelo protocol has a "hearbeat" implementation, so it will automatically disconnect "zombie" users. Take a look here, i may wrong: https://github.com/NetEase/pomelo/blob/master/lib/connectors/commands/heartbeat.js

impcyber avatar Feb 17 '15 17:02 impcyber