From cf9d917a7e7f51c30dace371870db87c33995483 Mon Sep 17 00:00:00 2001 From: SrGooglo Date: Thu, 24 Apr 2025 06:09:27 +0000 Subject: [PATCH] Update index.js --- packages/server/gateway/index.js | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/packages/server/gateway/index.js b/packages/server/gateway/index.js index 559f5ec7..fba8d70c 100755 --- a/packages/server/gateway/index.js +++ b/packages/server/gateway/index.js @@ -181,19 +181,11 @@ export default class Gateway { serviceId: id, path: path, target: `${http.proto}://${listen.ip}:${listen.port}${path}`, + websocket: !!websocket, }) } } - if (websocket && websocket.enabled === true) { - await this.gateway.register({ - serviceId: id, - websocket: true, - path: websocket.path, - target: `${http.proto}://${listen.ip}:${listen.port}${websocket.path}`, - }) - } - if (this.state.allReady) { if (typeof this.gateway.applyConfiguration === "function") { await this.gateway.applyConfiguration()