I have an asynchronous socket project and I need to know whenever a client was disconnected so I can remove it from the list of the connected clients.
Is there any way of checking this asynchronously?
In my mind, I could make a thread where I'm looping through all clients and check if !Client.Connected then I'll close the socket but maybe there's another way of doing this.