-
-
Notifications
You must be signed in to change notification settings - Fork 558
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Does the db sync work for browser? #197
Comments
I am confused about this as well. I am using the kvstore and data persists while the app is running; however, when I restart the app, the data is gone. I am using the IpfsBrowserDaemon with the signalling server from the browser example. |
Hi everyone and thanks for reporting the bugs! We just released a new version of orbit-db, including updated examples. Would you care to take another try and see if this bug still happens? As a clarification, as @zabirauf shows in his screenshots, you'll have to open the second peer in an incognito tab, otherwise the peers won't connect as they use the same ipfs repo (ie. they have the same IPFS peer id). |
@haadcode When i run the example, i get the following error
|
@zabirauf I believe this is due to not updating node_modules after pulling the latest. Make sure you do |
@haadcode Thanks, that solved the issue. I do see the KVStore to be in sync but the log and counter still seem to be unsynced. |
@zabirauf thank for confirming this fixed your issue. I see that in your video, the "Peers" at the top says 0 for both. This means that the two peers are not connected and as such, can't sync the databases (any of them). We still have some bugs related to the connectivity, so it might be that the peers don't connect every time. To go around this, I usually restart both peers until I see "Peers: 1" in both :) Let me know if this helps! |
@haadcode Thanks a lot, it works. Everything syncs now 👍 . Closing the issue now. |
Great to hear! Please don't hesitate to open new issues if you come across any. |
I tried running the
examples/browser/browser.html
with the SignalServer changed to0.0.0.0:9090
and started the js-libp2p-webrtc-star signaling server locally. But when I run it in two tabs then the data being pushed to eventlog doesn't seem to sync across both of them.Am I missing something here? Does the data sync work in the browser as the node example seem to work fine.
P.S: I am new to IPFS and ordit-db so my knowledge is limited.
The text was updated successfully, but these errors were encountered: