How do you clean disconnect a client from the server and not just cut the cord and wait for exceptions to kick in? For example when writing a chat application, how do you disconnect the client with letting the server know its now gone when the user closerequests the client?
How do you clean disconnect a client from the server and not just cut the cord and wait for exceptions to kick in? For example when writing a chat application, how do you disconnect the client with letting the server know its now gone when the user closerequests the client?