Added isConnecting method to client