Add timeserve example to demonstrate writing to multiple live peers #3

Merged
decentral1se merged 2 commits from cblgh/iroh-go:main into main 2026-06-25 14:05:07 +00:00
Collaborator

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)

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)
cblgh added 1 commit 2026-06-25 13:17:50 +00:00
cblgh added 1 commit 2026-06-25 13:19:00 +00:00
decentral1se merged commit caf52e915d into main 2026-06-25 14:05:07 +00:00
Sign in to join this conversation.
No Reviewers
No Label
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: decentral1se/iroh-go#3