Add connect method to client.