Closed YerkoPalma closed 4 years ago
I think the problem there is that you're writing a raw hex string to the stream, but it's expecting everything to be in ndjson format and throwing a parsing error. Might want to use the Peer API for sending the hex key.
Also, hyperswarm-web sadly doesn't support info.deduplicate yet. 😅 A PR to hyperswarm-proxy would be very much appreciated, and in the meantime you could probably track connection streams and the peer IDs and deduplicate within your app.
I'm not using hyperswarm-web (yet), so, for now using the send method from Peer worked. I don't get the hyper stack so well right now, that's why I'm just playing around, if I can figure out how to implement dedup in hyperswarm-web, I've definetly will be sending a PR.
thanks
Hi 👋 I'm trying to deduplicate connections on this demo but I can't seem to make it right.
I did this before in a minimal hyperswarm setup like this
But when I tried something similar with this demo I've got an error
I'm doing it wrong or something? Would highly appreciate some help Thanks :)