You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Exactly like #7070, I have a working browser based app, that my subscriptions drop after about 20 minutes and they cannot be re-established without a browser refresh. @david-mcafee last year mentioned some code used to reconnect on a Discord but that Discord does not seem to exist any longer. In know that some people have experienced this problem with VPNs but in my situation there is not any VPN running.
Expected behavior
Subscription would either be re-established automatically or a coding method to reconnect without a full refresh would be made available
Reproduction steps
Run application
Test out that subscription was successfully registered and is operational
Wait roughly 20 mins of inactivity and errors will be raised for "Connection closed"
Code Snippet
// Put your code below this line.
Log output
// Put your logs below this line
aws-exports.js
No response
Manual configuration
No response
Additional configuration
No response
Mobile Device
No response
Mobile Operating System
No response
Mobile Browser
No response
Mobile Browser Version
No response
Additional information and screenshots
No response
The text was updated successfully, but these errors were encountered:
Reconnection is now staged on the next tag in preparation for release in aws-amplify v5. To test against this update install the next tag version of the aws-amplify packages your project is using. eg yarn add aws-amplify@next.
With this change any disrupted connection will attempt to reconnect when possible. Reconnection can be expected to trigger 5 seconds after the resources to reconnect are available. If the network is disrupted in a way that can't be detected, reconnection will be attempted every minute until the connection is recovered.
Note that missed messages will not backfill on recovery. If you need to trigger behavior to catch up missed messaged on recovery, this should be possible to implement using the connection state Hub messages released last month.
Good news. Automated Reconnection is now available on the latest aws-amplify release! Review the updated subscription docs and consider any application behavior you may want to add to best meet your users needs when subscriptions reconnect.
Before opening, please confirm:
JavaScript Framework
React
Amplify APIs
Authentication, GraphQL API
Amplify Categories
auth, api
Environment information
Describe the bug
Exactly like #7070, I have a working browser based app, that my subscriptions drop after about 20 minutes and they cannot be re-established without a browser refresh. @david-mcafee last year mentioned some code used to reconnect on a Discord but that Discord does not seem to exist any longer. In know that some people have experienced this problem with VPNs but in my situation there is not any VPN running.
Expected behavior
Subscription would either be re-established automatically or a coding method to reconnect without a full refresh would be made available
Reproduction steps
Run application
Test out that subscription was successfully registered and is operational
Wait roughly 20 mins of inactivity and errors will be raised for "Connection closed"
Code Snippet
// Put your code below this line.
Log output
aws-exports.js
No response
Manual configuration
No response
Additional configuration
No response
Mobile Device
No response
Mobile Operating System
No response
Mobile Browser
No response
Mobile Browser Version
No response
Additional information and screenshots
No response
The text was updated successfully, but these errors were encountered: