Removed socket creation from client constructor