Reputation: 100
I am bit new to nodejs and working on with a fire base application.I want to make application such that it could work with fire base off-line also
I tried to search for a relevant answer How exactly can we make changes such that fire base can work off-line with nodejs technology it does seems to work off-line with nodejs
Thanks in advance
Upvotes: 2
Views: 786
Reputation: 600131
All Firebase SDKs handle intermittent connectivity loss: they keep the data in memory and when the connection to the back-end is restored, they send any pending writes and update the local cache.
The Firebase SDKs for iOS and Android also support disk persistence. This means they write recently downloaded data (and pending writes) to disk, and re-read them from there when the app restarts.
JavaScript clients (including the Admin SDK for Node.js) only support the intermittent connectivity loss. They don't have a disk based persistence mechanism, although somebody is working on it now that the SDK is open-sourced.
Also see: Does Firebase JavaScript API catch-up with server when re-connected
Upvotes: 1