Socket.IO chat not working with load balancer AWS (multiple instances)

Viewed 130

I recently integrated basic chat functionality with Socket.IO.

It’s working fine when I am using this with only one instance but while attaching 2 instances to the Application load balancer it just doesn’t work.Message doesn't get received by the user if he is connected on another instance.

Also, I checked for Stickness, & Enabled it but that also doesn't work. What is the recommended way to solve this?

I'm using node.js with express and typescript.

0 Answers
Related