I am create a server solution which have many client. Use a arraylist the store the user information and the socket. Broadcast messaging...
On the client side,
When the server is close, a exception will be throw and I can catch the exception and do the corresponding action.
But on the server side,
When a client offline, the server will not throw a exception. Do there is any method to achieve.
I am now doing this with sending a boardcast message every 10 second to see if the connection is health or not. Instead of the shorten the interval between health-checking boardcast messgae. If there is any method to do so such as setListener?