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

No files matched your search

+2
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}");
});
});