Add timeserve example to demonstrate writing to multiple live peers #3
Reference in New Issue
Block a user
Delete Branch "cblgh/iroh-go:main"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Figured out some things with how iroh works, like a peer connecting to an endpoint needs to send some data for the endpoint to know that the specific bidi stream is actually alive and relevant!
Adding this example because I wanted an example that demonstrates you can connect many many peers to a single endpoint and have them all be serviced independently :)
Bonus points would be to make the exact same time be sent from the listener to the peers (listener has 1 time producing function and then, on producing a new time, iterates over all alive peer streams to send that time), but I didn't have a clean solution for that off the top of my head X)