hyperdiscovery | see hyperswarm/replicator for similar functionality | Hashing library
kandi X-RAY | hyperdiscovery Summary
kandi X-RAY | hyperdiscovery Summary
DEPRECATED: see hyperswarm/replicator for similar functionality with hypercore
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of hyperdiscovery
hyperdiscovery Key Features
hyperdiscovery Examples and Code Snippets
Community Discussions
Trending Discussions on hyperdiscovery
QUESTION
I'm trying to use hyperdb in browser with swarming via webrtc and signalhub. The code is pretty strait forward, but there is some issue with hyperdb replicate where the connecting is killed because of a sameKey check in hypercore. So, I'm thinking ... I'm not properly juggling my discovery keys and id keys so the peers know they should be sync'd. Here is some sample code, it is a bit of a mess but the relevant bits are the hyperdb initialization and the webrtc/signalhub stuff (I think) ... the key at the top is the discovery key of the other peer:
...ANSWER
Answered 2018-Jul-13 at 18:09I put up a working example here: https://github.com/joehand/hyperdb-web-example/blob/master/index.js
I think you are getting that error because you are not initializing the db with the key:
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install hyperdiscovery
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page