public function findByConnection($connection)
    {
        return $this->first(function ($client, $key) use ($connection) {
            return $client->connection === $connection;
        });
    }
public function findByConnection($connection)
    {
        return $this->first(function ($client, $key) use ($connection) {
            return $client->connection === $connection;
        });
    }
public function findByConnection ( $ connection ) { return $ this -> first ( function ( $ client , $ key ) use ( $ connection ) { return $ client -> connection === $ connection ; } ) ; }
Find a client by their connection.

@return Codemash\Socket\Client|null
Find a client by their connection .