Skip to content
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

Easily replicating between two scuttlebutts? #148

Closed
paulkernfeld opened this issue May 6, 2016 · 5 comments
Closed

Easily replicating between two scuttlebutts? #148

paulkernfeld opened this issue May 6, 2016 · 5 comments

Comments

@paulkernfeld
Copy link

I'm interested in using secure-scuttlebutt as part of a P2P project I'm working on. One thing that I'd like to be able to do is to easily pipe two scuttlebutts together to make them replicate with each other, maybe like how hypercore does it. That way, I can connect them using something like discovery-swarm or webrtc-swarm. Is there currently code that makes it easy to do this? I see that there's a replicate.js file in the scuttlebot project, but I'm interested in something more general. I'm guessing that I might need to write a new library to do this, which is fine with me.

@dominictarr
Copy link
Contributor

You could pull this off with just a bit of glue code. normally, replication is automatic, and is trigged when sbot realizes it's connected to another peer.

What is your goal here?
I'd love to have support for utp in standard ssb, I couldn't install webrtc on node though.

it would be best if we made pubs act like the "signal hub", and then that is also more decentralized than using a specific server to introduce your peers.

@paulkernfeld
Copy link
Author

Well, I was hoping to use secure-scuttlebutt without sbot, since I want to use a different network layer. Specifically, I would like to be able to replicate feeds without any invites taking place. Also, the ssb replication logic seems to contain some math governing how much of the feed to replicate, and I'd like to replace that with my own logic.

That said, I think I might end up using hypercore instead of secure-scuttlebutt, since it seems to be better suited to my use case.

Yeah... webrtc is a pain. I assume you've seen electron-webrtc? Maybe that would be a useful building block.

@dominictarr
Copy link
Contributor

ah, right. it would depend on what sort of application you are building. it is relatively simple to disable particular parts of scuttlebot, since most of those features - replication patterns, etc, are controlled by plugins.

what sort of application are you building?

@dominictarr
Copy link
Contributor

Oh, I didn't see electron-webrtc, I just saw wrtc, which failed to build.

@stale
Copy link

stale bot commented Oct 23, 2018

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@stale stale bot added the stale label Oct 23, 2018
@stale stale bot closed this as completed Oct 30, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants