server->refresh(); } public function getProxyStatus() { try { dispatch_sync(new ContainerStatusJob($this->server)); $this->emit('proxyStatusUpdated'); } catch (\Throwable $e) { return handleError($e, $this); } } public function getProxyStatusWithNoti() { if ($this->server->isFunctional()) { $this->emit('success', 'Refreshed proxy status.'); $this->getProxyStatus(); } } }