server->refresh(); } public function getProxyStatus() { try { if ($this->server->isFunctional()) { $container = getContainerStatus(server: $this->server, container_id: 'coolify-proxy'); $this->server->proxy->status = $container; $this->server->save(); $this->emit('proxyStatusUpdated'); } } catch (\Throwable $e) { return handleError($e); } } public function getProxyStatusWithNoti() { $this->emit('success', 'Refreshed proxy status.'); $this->getProxyStatus(); } }