Surviving Proxy that strip WebSocket's Request Header - Atmosphere/atmosphere GitHub Wiki

Some proxy strips the "Upgrade: websocket" header when proxing the request, making an Atmosphere application unstable with unpredicted result. Two solutions:

  • First, just set client side a query string in the form of:
   request.headers = {"Connection": "Upgrade", "Upgrade": "websocket"}

With Atmosphere 2.1 and Up, just do

  request.headers = {"X-Atmosphere-WebSocket-Proxy": "true"}