I’m using the watch() method on the web SDK to keep real time updates shown on my application screen. Sometime, for whatever reason, the watch() stops working. It can be after many hours on Chrome or almost immediately on mobile Safari.
Is there a way to detect a watch() that is no longer connected, so that I can have it reconnect upon this dropping?
i recently create a react app by using realm web template app, the web-js one, and have this error show up every few second when fetching data. i think it is related with your watch() drops issue.
Uncaught (in promise) WatchError: rule with id="62ec12a7614......" no longer exists on mongodb service, closing watch stream
at WatchStream.feedSse (bundle.dom.es.js:1812:1)
at WatchStream.feedLine (bundle.dom.es.js:1737:1)
at WatchStream.advanceBufferState (bundle.dom.es.js:1872:1)
at WatchStream.feedBuffer (bundle.dom.es.js:1716:1)
at MongoDBCollection.watchImpl (bundle.dom.es.js:2065:1)
at async watchAction (useWatch.js:45:1)
is there a better place to rise the question to find out answers