Update index.js

This commit is contained in:
SrGooglo 2025-04-24 06:09:27 +00:00
parent 4c78660c4c
commit cf9d917a7e

View File

@ -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()