go-libp2p-gorpc icon indicating copy to clipboard operation
go-libp2p-gorpc copied to clipboard

Example streaming usage

Open vaultec81 opened this issue 1 year ago • 1 comments

Hi, I can't seem to find any good examples of streaming using gorpc. I was able to hack together a basic example, but it doesn't seem to be receiving any messages. Normal send/receive without doing streaming works fine. Are there any good example usages for accomplishing streaming?

vaultec81 avatar Sep 21 '24 12:09 vaultec81

hmm yes for example: https://github.com/ipfs-cluster/ipfs-cluster/blob/master/rpc_api.go#L218-L220

Essentially you work with in/out channels...

hsanjuan avatar Nov 21 '24 10:11 hsanjuan