diff options
Diffstat (limited to 'src/zenserver/compute')
| -rw-r--r-- | src/zenserver/compute/computeserver.cpp | 16 |
1 files changed, 1 insertions, 15 deletions
diff --git a/src/zenserver/compute/computeserver.cpp b/src/zenserver/compute/computeserver.cpp index 724ef9ad2..d1875f41a 100644 --- a/src/zenserver/compute/computeserver.cpp +++ b/src/zenserver/compute/computeserver.cpp @@ -721,21 +721,7 @@ ZenComputeServer::InitializeOrchestratorWebSocket() return; } - // Convert http://host:port → ws://host:port/orch/ws - std::string WsUrl = m_CoordinatorEndpoint; - if (WsUrl.starts_with("http://")) - { - WsUrl = "ws://" + WsUrl.substr(7); - } - else if (WsUrl.starts_with("https://")) - { - WsUrl = "wss://" + WsUrl.substr(8); - } - if (!WsUrl.empty() && WsUrl.back() != '/') - { - WsUrl += '/'; - } - WsUrl += "orch/ws"; + std::string WsUrl = HttpToWsUrl(m_CoordinatorEndpoint, "/orch/ws"); ZEN_INFO("establishing WebSocket link to orchestrator at {}", WsUrl); |