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() { $this->emit('success', 'Refreshed proxy status.'); $this->getProxyStatus(); } }