This commit is contained in:
SrGooglo 2023-06-23 21:44:28 +00:00
parent d8567ef1f4
commit e3472a4ce2
2 changed files with 3 additions and 3 deletions

View File

@ -78,7 +78,7 @@ export default class Server {
const startHrTime = process.hrtime()
await this.redis.initialize()
await this.websocketServer.initialize()
await this.__registerInternalMiddlewares()

View File

@ -226,8 +226,8 @@ export default class API {
})
}
if (global.ioAdapter) {
this.server.websocket_instance.io.adapter(global.ioAdapter)
if (this.redis.ioAdapter) {
this.server.websocket_instance.io.adapter(this.redis.ioAdapter)
}
this.server.websocket_instance.eventsChannels.push(["/main", "ping", async (socket) => {