Atmosphere / atmosphere-javascript

atmosphere-javascript
Apache License 2.0
122 stars 98 forks source link

Fix long-polling connection errors #286

Closed SuperPat45 closed 1 year ago

SuperPat45 commented 1 year ago

Avoid the 'No suspended connection available" error when sending a message during long-polling reconnection.

Avoid the "maxReconnectOnClose reached" error (due to the reverse proxy timeout who close long-polling connection) by resetting the internal reconnect counter when the long-polling connection is successfully reopened (in the same way as when we receive a heartbeat message from the server).

Ignore websocker.onerror() invocation when a blocked WebSocket connection was fallback in another transport a while ago. Because it set fallback transport _response.error variable to true;