gristlabs_grist-core/app
Jonathan Perret 96b652fb52
Support HTTP long polling as an alternative to WebSockets (#859)
The motivation for supporting an alternative to WebSockets is that while all browsers supported by Grist offer native WebSocket support, some networking environments do not allow WebSocket traffic.

Engine.IO is used as the underlying implementation of HTTP long polling. The Grist client will first attempt a regular WebSocket connection, using the same protocol and endpoints as before, but fall back to long polling using Engine.IO if the WebSocket connection fails.

Include these changes:
- CORS websocket requests are now rejected as a stronger security measure. This shouldn’t affect anything in practice; but previously it could be possible to make unauthenticated websocket requests from another origin.
- GRIST_HOST variable no longer affects CORS responses (also should not affect anything in practice, as it wasn't serving a useful purpose)
2024-03-28 13:22:20 -04:00
..
client Support HTTP long polling as an alternative to WebSockets (#859) 2024-03-28 13:22:20 -04:00
common (core) Forms Improvements 2024-03-21 13:01:25 -04:00
gen-server (core) Refactor forms implementation 2024-02-22 08:44:25 -05:00
plugin Move phab docs to /documentation (#882) 2024-03-05 08:35:48 -05:00
server Support HTTP long polling as an alternative to WebSockets (#859) 2024-03-28 13:22:20 -04:00
tsconfig.json (core) move home server into core 2020-07-21 20:39:10 -04:00