Made a method for connecting with ClientConnection