derhuerst / files-sync-stream

Sync files over any transport.
https://github.com/derhuerst/files-sync-stream
ISC License
0 stars 1 forks source link

add tests for connection loss, latency, etc. #5

Open derhuerst opened 3 years ago

derhuerst commented 3 years ago

For simulating latency, simulate-network-conditions might be useful.

ghost commented 3 years ago

Could you explain how the two peers connect to each other? It doesn't make sense to me without it either being via localhost or some kind of addressing system.

derhuerst commented 3 years ago

files-sync-stream doesn't care about how peers find and connect to each other. Some examples for possible implementations:

The simplest setup is to directly wire two peers together in-process. The tests do it this way.

ghost commented 3 years ago

One basic sample I'm currently working with is the socket.io chat template. Maybe that would be of use.

derhuerst commented 3 years ago

Sure, we can add a examples/socket.io directory which will contain a basic demo of how to use socket.io with files-sync-stream.

ghost commented 3 years ago

What about the project in relation to avion? It looks like it has its own thing going for it over on its page, and it would not be beneficial if it had extra stuff.

derhuerst commented 3 years ago

I don't understand what you're asking, sorry. Can you try to rephrase?

ghost commented 3 years ago

Why add another interface to this project, when the bigger one, avion, already has one of its own?

derhuerst commented 3 years ago

We‘re having a misunderstanding here.

I thought you proposed adding an example this repo on how to use it with socket.io. I don‘t intend to add a UI to this repo.