How to detect Client disconnect server side

edited February 2018 in Library Questions

Hello, I'm trying to make a simple networking program and I have a list on the server side that keeps hold of all the clients that are currently connected. I can get it to add clients with:

void serverEvent(Server server, Client client) { }

How can I do the above but instead of running when a client connects, run when a client disconnects?

Sign In or Register to comment.