title: how to deal with socketexcrption connection lost
body: <p>I get socketexception that tell "connection reset" in the server side. this happen when Client side  lost the connection to the server and re- connect.</p>
  
  <p>what may I do to "fix" the socket. how to handle this Exception after it occur ...
  <strong>EDIT</strong> my question not need code, I ask about the concept of dealing with socketexception, the socket already closed or connection reset. <strong>my application supposed to be connected to the server all the time</strong>, we know that in any time of the app life the Registered client will lost the Internet access. then this exception will fire.
  How may I let the Client to reconnect!!</p>