mirror of
https://github.com/bitinflow/expose.git
synced 2026-03-13 21:45:55 +00:00
wip
This commit is contained in:
@@ -61,6 +61,11 @@ class Client
|
||||
exit(1);
|
||||
});
|
||||
|
||||
$connection->on('subdomainTaken', function ($data) {
|
||||
$this->logger->error("The chosen subdomain \"{$data->data->subdomain}\" is already taken. Please choose a different subdomain.");
|
||||
exit(1);
|
||||
});
|
||||
|
||||
$connection->on('authenticated', function ($data) {
|
||||
$this->logger->info("Connected to http://$data->subdomain.{$this->configuration->host()}:{$this->configuration->port()}");
|
||||
|
||||
|
||||
@@ -35,6 +35,7 @@ class ControlConnection
|
||||
$decodedEntry = json_decode($message);
|
||||
|
||||
$this->emit($decodedEntry->event ?? '', [$decodedEntry]);
|
||||
|
||||
if (method_exists($this, $decodedEntry->event ?? '')) {
|
||||
call_user_func([$this, $decodedEntry->event], $decodedEntry);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user