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

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

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

nuttwork
Copy link

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

@mixmix
Copy link
Member

mixmix commented Mar 28, 2023

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
Copy link
Author

nuttwork commented Mar 29, 2023 via email

@ahdinosaur
Copy link

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

README.md Outdated
Comment on lines 33 to 36
Added talk.js and listen.js that can run on 2 different machines.
Usage: node listen.js
Then copy the key it prints and the host IP on which you ran listen.js and put it in talk.js
Usage: node talk.js

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

the markdown here doesn't display well, e.g. https://github.com/nuttwork/secret-stack/blob/example/README.md

might be better written like:

See also: [`talk.js`](./examples/talk.js) and [`listen.js`](./examples/listen.js)

Where the rest of the documentation could be in those files.

@mixmix
Copy link
Member

mixmix commented Apr 2, 2023

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

Changed markdown per suggestion from ahdinosaur.
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

Successfully merging this pull request may close these issues.

3 participants