File tree Expand file tree Collapse file tree 1 file changed +18
-1
lines changed
Expand file tree Collapse file tree 1 file changed +18
-1
lines changed Original file line number Diff line number Diff line change @@ -105,7 +105,24 @@ the topic. You can obtain bootstrap peers through various means, such as:
105105- A configuration file or environment variable.
106106- A discovery service that provides a list of active peers for the topic.
107107
108- TODO: provide example code for getting bootstrap peers from DNS or DHT discovery.
108+
109+ #### Sharing a ticket
110+
111+ You can share an endpoint ticket with others to let them join the gossip topic. An
112+ endpoint ticket contains all the dialing information needed to connect to your
113+ endpoint.
114+
115+ ``` rust
116+ use iroh_tickets :: endpoint :: EndpointTicket ;
117+ let ticket = EndpointTicket :: new (endpoint . addr ());
118+ println! (" Share this ticket to let others join the gossip topic: {ticket}" );
119+ ```
120+
121+ #### Using a public rendezvous server
122+ You can also use iroh's rendezvous servers to find bootstrap peers for a topic.
123+ To do this, you can create an endpoint ticket for relay to use to discover
124+ peers. For more information on how to broadcast tickets on the relay
125+ server, see [ n0des.iroh.computer] ( https://n0des.iroh.computer ) .
109126
110127### Picking a topic ID
111128
You can’t perform that action at this time.
0 commit comments