mirror of
https://github.com/ragestudio/comty.git
synced 2025-06-09 02:24:16 +00:00
Update index.js
This commit is contained in:
parent
4c78660c4c
commit
cf9d917a7e
@ -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()
|
||||
|
Loading…
x
Reference in New Issue
Block a user