-
Notifications
You must be signed in to change notification settings - Fork 69
Open
Description
Here's a big issue that covers a lot of TODOs in order to move away from ssb-gossip and adopt ssb-conn. Feel free to edit this list if you come across some other task related to gossip.
- Patchcore REQUIRED
patchcore/sbot.jsshould replacesbot.gossip.peers(asyncapi) withssb.conn.peers(asourceapi), should pull.drain that and updatelocalPeersandconnectedPeers
- Patchcore REQUIRED
patchcore/sbot.jsshould expose a new api calledstagedPeers, similar tolocalPeersandconnectedPeers, based onssb.conn.stagedPeers(asourceapi)
- Patchcore OPTIONAL
patchcore/sbot.jsshould replacegossipConnectwithconnConnect, replacesbot.gossip.connectwithsbot.conn.connect
- Patchbay REQUIRED
- patchbay's Network page should also observe
stagedPeers, display them, and allow the user to "approve" a staged peer, which should callpatchcore.connConnectand then publish a new follow message
- patchbay's Network page should also observe
- Patchbay REQUIRED
- patchbay should use ssb-lan instead of ssb-local
- ssb-ahoy OPTIONAL
ssb-ahoy/views/replicationshould replaceserver.gossip.connectwithserver.conn.connect
- ssb-invite OPTIONAL
ssb-inviteshould replaceserver.gossip.addwithserver.gossip.remember
- ssb-replicate OPTIONAL
ssb-replicateshould replacessbServer.gossip.peers(asyncapi) withssbServer.conn.peers(asourceapi), pull.filter that to have onlytype==='lan'and truthy.key, pull.drain that, andrequest()replication
- ssb-ebt OPTIONAL
ssb-ebt/index.jsshould remove thesbot.gossip.disconnectcall because ssb-conn's scheduler automatically makes sure that blocked peers will never be connected to
- ssb-device-address OPTIONAL
ssb-device-address/index.jsshould replacesbot.gossip.add/removewithsbot.conn.remember/forget, notice the TODO comment in ssb-device-address, ssb-conn supports multiserver addresses
- ssb-friend-pub OPTIONAL
ssb-friend-pub/index.jsshould replacesbot.gossip.add/removewithsbot.conn.remember/forget
Note: gossip's add() is equivalent to CONN's remember() + connect(), so in some cases where we had gossip.add, we might want to do only conn.remember, and in other cases, we might want to do conn.remember plus conn.connect. "Remember" means "store in the persistent db", and "Connect" means "connect to them right now".
Metadata
Metadata
Assignees
Labels
No labels