public bool IsConnecting()
 {
     if (client != null)
     {
         return(client.IsConnecting());
     }
     return(false);
 }