(address: string, status: 'online' | 'offline')
| 442 | } |
| 443 | |
| 444 | public updateCustomServerStatus(address: string, status: 'online' | 'offline'): CustomServer[] { |
| 445 | const server = this.customServers.find(s => s.address === address); |
| 446 | if (server) { |
| 447 | server.status = status; |
| 448 | this.saveCustomServersToStorage(); |
| 449 | |
| 450 | if (status === 'online' && server.enabled) { |
| 451 | this.addServer(address); |
| 452 | } else { |
| 453 | this.removeServer(address); |
| 454 | } |
| 455 | } |
| 456 | |
| 457 | return [...this.customServers]; |
| 458 | } |
| 459 | |
| 460 | /** |
| 461 | * True if the user has a verified, enabled custom inference server (not Observer Cloud). |
no test coverage detected