Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Pipe 2 streams together on different machines #29

Open
DougAnderson444 opened this issue Oct 5, 2019 · 3 comments
Open

Pipe 2 streams together on different machines #29

DougAnderson444 opened this issue Oct 5, 2019 · 3 comments

Comments

@DougAnderson444
Copy link

Hello,

How does one pipe together 2 tries on 2 different machines? How does the remote machine get the stream reference for the originating machine?

https://github.com/mafintosh/hypertrie#stream--dbreplicateisinitiator-options

@micahscopes
Copy link
Contributor

micahscopes commented Jan 31, 2020

@makamekm
Copy link

@DougAnderson444 This example could be helpful: https://github.com/mafintosh/hypertrie/blob/master/test/update.js#L70

The best real case example would be to use "pump" library

@aboynejames
Copy link

This might help, the basic test linked to above but in two separate files peer1.js and peer2.js https://github.com/aboynejames/learn-hypercore/tree/master/hypertrie

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants