Skip to content

Surviving Proxy that strip WebSocket's Request Header

Johannes Dahlström edited this page Nov 8, 2013 · 2 revisions

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"}

Step by Step Tutorials

Concepts & Architecture

15 Minutes Tutorial

Advanced Topics

API

Known WebServer Issues

References

External Documentations

githalytics.com alpha

Clone this wiki locally