Skip to content
This repository has been archived by the owner. It is now read-only.

Be able to turn off websocket usage #1322

Closed
kroepke opened this issue May 22, 2015 · 0 comments
Closed

Be able to turn off websocket usage #1322

kroepke opened this issue May 22, 2015 · 0 comments
Assignees
Milestone

Comments

@kroepke
Copy link
Contributor

@kroepke kroepke commented May 22, 2015

In case a reverse proxy is used for the web interface, and it cannot be configured to support websockets and sockjs does not detect that websocket support is missing, add the option to turn off server side support for websockets.

The implementation will then fall back to xhr methods or worse iframe polling for older IEs.

Due to implementation details this has to be done with a system property:
-Dwebsockets.enabled=false

@kroepke kroepke self-assigned this May 22, 2015
@kroepke kroepke added this to the 1.1.0 milestone May 22, 2015
@kroepke kroepke closed this in 70c4e95 May 22, 2015
kroepke added a commit that referenced this issue May 29, 2015
this changes the default behavior to use xhr-polling (or even more basic polling techniques), while still allowing to use the websockets.enabled sytem property to turn on support for more permissive environments

the default behavior should now properly use plain xhr requests (or xdr on IE 9), and fall back to jsonp or even iframe polling.

fixes #1344, fixes #1353, refs #1338 #1322
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
1 participant