src/Client/Cluster.php
public function meet(array $nodeUrls)
    {
        $current = $this->stream->getNodeUrl();

        return array_filter($nodeUrls, function($url) use ($current) {
            if ($url === $current) {
                return true;
            }

            $parts = parse_url($url);

            try {
                $response = $this->send(['CLUSTER', 'MEET', $parts['host'], (int) $parts['port']]);
                $this->log->debug('CLUSTER MEET', ['host' => $url, 'response' => $response]);
                return 'OK' === $response;
            } catch (Exception $e) {
                $this->log->error($e->getMessage(), array('url' => $url, 'exception' => $e));
                return false;
            }
        });
    }
public function meet(array $nodeUrls)
    {
        $current = $this->stream->getNodeUrl();

        return array_filter($nodeUrls, function($url) use ($current) {
            if ($url === $current) {
                return true;
            }

            $parts = parse_url($url);

            try {
                $response = $this->send(['CLUSTER', 'MEET', $parts['host'], (int) $parts['port']]);
                $this->log->debug('CLUSTER MEET', ['host' => $url, 'response' => $response]);
                return 'OK' === $response;
            } catch (Exception $e) {
                $this->log->error($e->getMessage(), array('url' => $url, 'exception' => $e));
                return false;
            }
        });
    }
public function meet ( array $ nodeUrls ) { $ current = $ this -> stream -> getNodeUrl ( ) ; return array_filter ( $ nodeUrls , function ( $ url ) use ( $ current ) { if ( $ url === $ current ) { return true ; } $ parts = parse_url ( $ url ) ; try { $ response = $ this -> send ( [ 'CLUSTER' , 'MEET' , $ parts [ 'host' ] , ( int ) $ parts [ 'port' ] ] ) ; $ this -> log -> debug ( 'CLUSTER MEET' , [ 'host' => $ url , 'response' => $ response ] ) ; return 'OK' === $ response ; } catch ( Exception $ e ) { $ this -> log -> error ( $ e -> getMessage ( ) , array ( 'url' => $ url , 'exception' => $ e ) ) ; return false ; } } ) ; }
Introduce the provided nodes to the connected Disque instance.

@param string[] $nodeUrls

@return string[]
@see http://redis.io/commands/cluster-meet
Introduce the provided nodes to the connected Disque instance .