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?