This commit is contained in:
Marcel Pociot
2020-04-16 15:30:53 +02:00
parent e49708b290
commit 2778d5a489
22 changed files with 960 additions and 206 deletions

View File

@@ -12,6 +12,7 @@ class Client
protected $loop;
protected $host;
protected $port;
public static $subdomains = [];
public function __construct(LoopInterface $loop, $host, $port)
{
@@ -31,6 +32,7 @@ class Client
$connection->authenticate($sharedUrl, $subdomain);
$clientConnection->on('authenticated', function ($data) {
static::$subdomains[] = "$data->subdomain.{$this->host}:{$this->port}";
dump("Connected to http://$data->subdomain.{$this->host}:{$this->port}");
});
});