1.4 KiB
1.4 KiB
Examples
The examples in this directory show different parts of making an application that leverages iroh's functionality.
timeserveshows how one listener can serve many clients at once.allowlistshows how to set up an allowlist, limiting connections to only those explicitly approved. The example also shows how you can derive an identity that will stay the same between runs (static iroh public keypair) and how to interact with iroh's tickets mechanism of exchanging address information.connectis a barebones example showing how to send and read data.connect-desktopshows how to build a go-based desktop application using iroh.pairchatshow how to setup a pairwise connection where both parties can read and receive data sent over an iroh connection.simple-pipesets up a directional pipe that can be used à la netcat to send files over iroh.echosrvshows how to set up a simple HTTP echo server that is served only over iroh.echo-endpointsets up a HTTP echo server that can gate its HTTP routes based on the Iroh public key making requests.http-dialershows how to send a POST request over iroh using thenet/httpstandard library approach