Here's a big issue that covers a lot of TODOs in order to move away from ssb-gossip and adopt ssb-conn.
[ ] Patchcore
patchcore/sbot.js should replace sbot.gossip.peers (a sync api) with ssb.conn.peers (a source api), should pull.drain that and update localPeers and connectedPeers
[ ] Patchcore
patchcore/sbot.js should expose a new api called stagedPeers, similar to localPeers and connectedPeers, based on ssb.conn.stagedPeers (a source api)
[ ] Patchcore
patchcore/sbot.js should replace gossipConnect with connConnect, replace sbot.gossip.connect with sbot.conn.connect
[ ] ssb-ahoy
ssb-ahoy/views/replication should replace server.gossip.connect with server.conn.connect
[ ] ssb-invite
ssb-invite should replace server.gossip.add with server.gossip.remember
[ ] ssb-replicate
ssb-replicate should replace ssbServer.gossip.peers (a sync api) with ssbServer.conn.peers (a source api), pull.filter that to have only type==='lan' and truthy .key, pull.drain that, and request() replication
[ ] ssb-ebt
ssb-ebt/index.js should remove the sbot.gossip.disconnect call because ssb-conn's scheduler automatically makes sure that blocked peers will never be connected to
[ ] ssb-device-address
ssb-device-address/index.js should replace sbot.gossip.add/remove with sbot.conn.remember/forget, notice the TODO comment in ssb-device-address, ssb-conn supports multiserver addresses
[ ] ssb-friend-pub
ssb-friend-pub/index.js should replace sbot.gossip.add/remove with sbot.conn.remember/forget
Here's a big issue that covers a lot of TODOs in order to move away from ssb-gossip and adopt ssb-conn.
patchcore/sbot.js
should replacesbot.gossip.peers
(async
api) withssb.conn.peers
(asource
api), should pull.drain that and updatelocalPeers
andconnectedPeers
patchcore/sbot.js
should expose a new api calledstagedPeers
, similar tolocalPeers
andconnectedPeers
, based onssb.conn.stagedPeers
(asource
api)patchcore/sbot.js
should replacegossipConnect
withconnConnect
, replacesbot.gossip.connect
withsbot.conn.connect
ssb-ahoy/views/replication
should replaceserver.gossip.connect
withserver.conn.connect
ssb-invite
should replaceserver.gossip.add
withserver.gossip.remember
ssb-replicate
should replacessbServer.gossip.peers
(async
api) withssbServer.conn.peers
(asource
api), pull.filter that to have onlytype==='lan'
and truthy.key
, pull.drain that, andrequest()
replicationssb-ebt/index.js
should remove thesbot.gossip.disconnect
call because ssb-conn's scheduler automatically makes sure that blocked peers will never be connected tossb-device-address/index.js
should replacesbot.gossip.add/remove
withsbot.conn.remember/forget
, notice the TODO comment in ssb-device-address, ssb-conn supports multiserver addressesssb-friend-pub/index.js
should replacesbot.gossip.add/remove
withsbot.conn.remember/forget