From a0fe80b1ceec0c605dbaa7aa76592e8f04d23a17 Mon Sep 17 00:00:00 2001 From: Avral Date: Mon, 15 Aug 2022 20:32:00 +0300 Subject: [PATCH] update for socketService --- server/services/socketService/index.js | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/server/services/socketService/index.js b/server/services/socketService/index.js index 51162d5b9..8056d05d5 100644 --- a/server/services/socketService/index.js +++ b/server/services/socketService/index.js @@ -19,12 +19,12 @@ const subscriber = client.duplicate() const httpServer = createServer() const io = new Server(httpServer, { cors: { origin: '*' } }) -io.adapter(createAdapter()) -setupWorker(io) +//io.adapter(createAdapter()) +//setupWorker(io) -//httpServer.listen(process.env.PORT || 7002, function () { -// console.log(`SocketService Listening on port ${PORT}`) -//}) +httpServer.listen(process.env.PORT || 7002, function () { + console.log(`SocketService Listening on port ${process.env.PORT || 7002}`) +}) async function main() { const uri = `mongodb://${process.env.MONGO_HOST}:${process.env.MONGO_PORT}/alcor_prod_new`