Client connection logic is implemented.