Skip to content

Sharing Iroh node between applications? #2925

Answered by matheus23
bn-c asked this question in Q&A
Discussion options

You must be logged in to vote

Not a silly question at all :)

If you've played with the iroh CLI at all, you'll see a bunch of things that will feel familiar to you: There's a iroh start command that is roughly equivalent to ipfs daemon, and any commands like iroh blobs add or iroh blobs get require that you have iroh start running concurrently (unless you run iroh blobs add --start which will do an iroh start internally).

The CLI does this via a QUIC-based RPC library we built (quic-rpc). In fact, in the code example you've posted above, when you access the node.client(), that returns you an RPC connection to the node (fun fact: In the same process, this connection will be optimized and skip all serialization!).

Spawn…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by bn-c
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants