I'm trying to make a chat server for a little client I made but I'm having problems detecting when the user logs out. Plus I'm not sure how I should go about making the server -> client handling.
Help is welcomed greatly,