PHPPM\Client::getConnection PHP Метод

getConnection() защищенный Метод

protected getConnection ( ) : Connection
Результат React\Socket\Connection
    protected function getConnection()
    {
        if ($this->connection) {
            $this->connection->close();
            unset($this->connection);
        }
        $client = stream_socket_client($this->getControllerSocket());
        $this->connection = new Connection($client, $this->loop);
        return $this->connection;
    }