Closed staltz closed 5 years ago
hey just saw this. Thanks for posting this @staltz
I'm in the middle of a cross-platform nightmare. I look forward to trying this and hopefully getting it in production. If anyone else tests this before me and finds it good feel free to merge.
Note if what I'm working on currently gets merged we'll need to add this to ssb-ahoy
too!
Just updated this PR so it uses an even newer ssb-legacy-conn. Again, this should be without any breaking changes, and Manyverse is also using this with no problems. Should be an easy PR to test, but I'm not putting any pressure, take your time. :)
Testing this. Found a missing dependency bug in ssb-invite. There is also something funky in /network. I can see that I'm connected to 3 pubs, but none show up under remote peers.
@arj03 Very good find, thanks! I released ssb-legacy-conn@1.0.17 and updated this PR. It should have .state
on the peers now.
Can confirm that this now works. Have been running this since yesterday, so it connected and downloaded todays bulk. Also happy that this plays nice with ssb-friend-pub.
@staltz I was skimming the source just out of curiosity and can see references to DHTs. What is needed to support that in patchbay? Also the code is quite readable which is really nice, especially considering I havn't done any typescript coding.
Whoo! Thanks for merging!
ssb-legacy-conn supports DHT connections, that's one of the few deviations it has from ssb-gossip. You can take a look at Patchwork's PR to add DHT invites: https://github.com/ssbc/patchwork/pull/862/files it's mostly correct, but use ssb-legacy-conn instead of @staltz/sbot-gossip
. Also ping me in the PR you make for Patchbay so I can help review.
Nic ework all, Thanks both!
On Mar 21 2019, at 9:18 am, André Staltz notifications@github.com wrote:
Whoo! Thanks for merging!
ssb-legacy-conn supports DHT connections, that's one of the few deviations it has from ssb-gossip. You can take a look at Patchwork's PR to add DHT invites: https://github.com/ssbc/patchwork/pull/862/files it's mostly correct, but use ssb-legacy-conn instead of @staltz/sbot-gossip. Also ping me in the PR you make for Patchbay so I can help review. — You are receiving this because you commented. Reply to this email directly, view it on GitHub (https://github.com/ssbc/patchbay/pull/318#issuecomment-475011370), or mute the thread (https://github.com/notifications/unsubscribe-auth/ACitntQBrj4c27b9tMrFWBCPJ3wjY2prks5vYpeggaJpZM4bmmxv).
I've been working on the gossip plugin refactor/rewrite.
ssb-legacy-conn
is essentially the same functionality asssb-gossip
, but with its internals reworked with a new stack of libraries (notably,ssb-conn-db
migrates the filegossip.json
toconn.json
). I'm usingssb-legacy-conn
also in Manyverse.Try out this PR branch before merging. Everything should functionally be the same, the one difference is that
gossip.json
is read but never updated, onlyconn.json
is updated from now onwards. I'll be updatingssb-legacy-conn
gradually until its internals are very easy to work with. Then it'll be easy to create alternative plugins, e.g.ssb-better-conn
.