Updated the API to reflect the swarm-wide extensions that were added in @basestore/networker@1.0.0
. This update also removed
the listPeers
and watchPeers
methods, which can be implemented directly using the networker's peer-add
and peer-remove
events.
- Remove
listPeers
andwatchPeers
send
andonmessage
are passedPeer
objects instead of NOISE keys.Peer
objects are emitted from@basestore/networker
'speer-add
andpeer-remove
events.- The parameters have been reordered in
send
andonmessage
to match@basestore/networker
's extensions.onmessage(noiseKey, message)
andsend(noiseKey, message)
have been changed toonmessage(message, peer)
andsend(message, peer)
.