-
-
Notifications
You must be signed in to change notification settings - Fork 570
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
Proper Way To Replicate DB and Access From Another Device #468
Comments
Are you using let ipfs = new IPFS({
EXPERIMENTAL: {
pubsub: true
},
config: {
Addresses: {
Swarm: [
// Use IPFS dev signal server
// Prefer websocket over webrtc
//
// Local signal server
//'/ip4/127.0.0.1/tcp/13579/ws/p2p-websocket-star',
// Websocket:
'/dns4/ws-star-signal-1.servep2p.com/tcp/443/wss/p2p-websocket-star',
'/dns4/ws-star-signal-2.servep2p.com/tcp/443/wss/p2p-websocket-star',
'/dns4/ws-star.discovery.libp2p.io/tcp/443/wss/p2p-websocket-star',
// WebRTC:
// '/dns4/star-signal.cloud.ipfs.team/wss/p2p-webrtc-star',
]
}
}
}); |
Thanks, @lukas2005! I'm using js-ipfs (I think). I went through the quick start guide instructions on OrbitDB to get started:
So are you saying that with the configuration example you provided, you can manually specify servers with js-ipfs? And if so, are those standard websocket signaling server addresses or do I have to provide my own? |
the node.js |
Thanks a lot. I can't get it to work with that configuration, and I feel like I'm missing a step somewhere that's just not documented maybe:
|
FYI I got this working with the following configuration:
|
Great project! I can very easily log in with uPort and store data. However, it seems I am only storing data to local storage, because when I use another browser as a test of accessing from another device, I cannot open the DB created from Browser1. Here's what I'm trying:
on Browser1:
Note: handleGet() loads the previously stored documents, which works on Browser1. I am also passing a hard-coded orbitdb address for now as I test.
Now, on Browser2, I am trying to load the DB using the exact same code as above, but the documents I stored in Browser1 do not load. I get an empty object instead.
Any help would be greatly appreciated because I know I'm doing something wrong here. Just can't figure it out.
The text was updated successfully, but these errors were encountered: