ssbc / secret-stack

connect peers to each other using secret-handshakes
MIT License
90 stars 19 forks source link

Added a new example that seamlessly works across 2 different machines. #84

Open nuttwork opened 1 year ago

nuttwork commented 1 year ago

These two files work together to form one example of how to communicate across machines.

mixmix commented 1 year ago

This is a nice simple example. It's not a test per-se (as in we wouldn't run it as part of automated tests) I wonder if it could be converted into a single file that behaves as a test and whether that would be useful.

Can you speak more to why you wanted this @nuttwork ?

nuttwork commented 1 year ago

I agree with you about it being unsuitable for a test in the current form. I looked at other modules such as ssb-minimal-pub-server, ssb-client-basic, etc. and none have an example that works across machines, so I wrote one up...

On Mon, Mar 27, 2023 at 5:38 PM mix irving @.***> wrote:

This is a nice simple example. It's not a test per-se (as in we wouldn't run it as part of automated tests) I wonder if it could be converted into a single file that behaves as a test and whether that would be useful.

Can you speak more to why you wanted this @nuttwork https://github.com/nuttwork ?

— Reply to this email directly, view it on GitHub https://github.com/ssbc/secret-stack/pull/84#issuecomment-1486045577, or unsubscribe https://github.com/notifications/unsubscribe-auth/APR4L55RGSSQN4IT3N6GIFLW6IXJXANCNFSM6AAAAAAWB7JQUA . You are receiving this because you were mentioned.Message ID: @.***>

ahdinosaur commented 1 year ago

If it's an example not a test, should we make a new examples directory with this inside?

mixmix commented 1 year ago

I like @ahdinosaur suggestion of an examples folder. Lets do that.