em-websocket
                                
                                
                                
                                    em-websocket copied to clipboard
                            
                            
                            
                        Defer nonce confirmation till socket is upgraded
HAProxy messes up the upgrade process for draft 76, see: https://github.com/learnboost/socket.io/commit/9982232032771574ceb68e2bccee4e43fd5af887#diff-0
I noticed this cause it just broke some of my tests, for this to work behind haproxy in http mode we should return the 101 right away and then wait for nonce.
You can see my elaborate workaround here: https://github.com/SamSaffron/thin-em-websocket/commit/9f5538f68a568488372fe44d7e5df5a80e738219