bltavares / colmeia

Attempt to make an interop layer to connect to dat on hyperswarm in Rust
24 stars 4 forks source link

Integrate with hypercore crate #1

Closed bltavares closed 3 years ago

bltavares commented 4 years ago

We are already on a point where we could try to integrate with hypercore.

We are able to connect to a npx dat share running on another computer, both using the colmeia-nc or the colmeia-server.

https://gist.github.com/bltavares/ec688b8e6664834c51fe373f8c07c314

I've noticed that npx dat sends us two feed items for a simple dat repo, and from now on, this seems to be part of the replication stream. Maybe a dat repo has many hypercore feeds?

bltavares commented 4 years ago

There is some work already integrated with hypercore, it would be nice to try out the new async API https://github.com/datrs/hypercore/pull/103