Configure AWS ELB to work with socket.io

Are you getting error 400 on your websocket client when you have lots of instances behind a ELB? There’s a simple fix without needing any code changes.

First select target group

Select ‘Edit Attributes’

Enable Stickyness and set to 10 seconds.