Disque\Connection\Node\Node::sayHello PHP Метод

sayHello() публичный Метод

Say a new HELLO to the node and parse the response
public sayHello ( ) : array
Результат array The HELLO response
    public function sayHello()
    {
        $helloCommand = new Hello();
        $helloResponse = $this->connection->execute($helloCommand);
        $this->hello = (array) $helloCommand->parse($helloResponse);
        $this->id = $this->hello[HelloResponse::NODE_ID];
        $this->createPrefix($this->id);
        $this->priority = $this->readPriorityFromHello($this->hello, $this->id);
        return $this->hello;
    }