hypertrie icon indicating copy to clipboard operation
hypertrie copied to clipboard

Pipe 2 streams together on different machines

Open DougAnderson444 opened this issue 6 years ago • 3 comments

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

DougAnderson444 avatar Oct 05 '19 22:10 DougAnderson444

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

micahscopes avatar Jan 31 '20 00:01 micahscopes

@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

makamekm avatar May 23 '20 11:05 makamekm

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

aboynejames avatar Jun 27 '20 13:06 aboynejames