Quantcast
Channel: Library Questions - Processing 2.x and 3.x Forum
Viewing all articles
Browse latest Browse all 2896

How to detect Client disconnect server side

$
0
0

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?


Viewing all articles
Browse latest Browse all 2896

Trending Articles