How to wait for replication to complete when opening a database? #1218
PradaJoaquin
started this conversation in
General
Replies: 1 comment 2 replies
|
OrbitDB's sync protocol offers various events to check for replicated records. One can intercept the interaction of other peers by capturing events such as onSynced, update, join and leave. Some examples of replication can be found in the OrbitDB unit tests as well. Look at examples such as |
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
With my current understanding, when opening an existing OrbitDB database, the
openmethod resolves successfully, but at that point, the database does not yet appear to be fully replicated.What is the correct way to wait for replication or synchronization to complete before accessing the database content?
Steps to Reproduce
await db.open().await db.all().Would appreciate any guidance on the recommended approach!
All reactions