Skip to content

Commit

Permalink
update for socketService
Browse files Browse the repository at this point in the history
  • Loading branch information
avral committed Aug 15, 2022
1 parent fae0b21 commit a0fe80b
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions server/services/socketService/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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`
Expand Down

0 comments on commit a0fe80b

Please sign in to comment.