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
When I stop my node clients and restart it all documents are reported to the node, not just updated ones.
The question is how can I differentiate between really new items and old items? E.g. if the list has 100 items the reported item list will be huge. Since I'm mirroring this into a classical database the initial load after starting my node would be actually to rewrite the whole database.
Example I add while my node client is not running I add:
In the same dir my test peer test.js running inside node:
importGunfrom'gun'asyncfunctionrun(){constgun=Gun('http://localhost:9999/gun');gun.get('testdata').map().on(function(data,key){console.info(`getting a new document`,data)},{change: false})}awaitrun()
Start with:
node test.js
The text was updated successfully, but these errors were encountered:
When I stop my node clients and restart it all documents are reported to the node, not just updated ones.
Example I add while my node client is not running I add:
In the client although it has received already all previous event until counter 11 I still see:
My
test.html
creating data:Open this in a browser.
My Gun proxy
server.js
:Start with:
In the same dir my test peer
test.js
running inside node:Start with:
The text was updated successfully, but these errors were encountered: