-
I have this chat application using socketio for the realtime feature (messages, notifications, etc.). When it's in my local, the receiving of emits from client to server (vice versa) is working fine. Config for server:
Config for client:
I also use pm2 for node clustering on server I've been stuck here for almost 2 weeks from now. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
I tried my server to disable cluster mode of pm2 and it worked fine as expected. |
Beta Was this translation helpful? Give feedback.
I tried my server to disable cluster mode of pm2 and it worked fine as expected.
I will just follow this to make it work on cluster mode of pm2.
https://github.com/elad/node-cluster-socket.io