Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
basic pubsub commands #2599
This is still a WIP. To build and try it out you need to grab the go-libp2p-pubsub dep manually:
go get -d github.com/ipfs/go-libp2p-pubsub cd $GOPATH/src/github.com/ipfs/go-libp2p-pubsub gx install --global gx-go rewrite
The command here is
Sorry for the delay. Notes and feedback:
Just dies silently. We should probably give an error: "Topic required, eg. 'Qm...abc/topic1'" or something.
Happens when the topic doesn't exist.
I think this would be clearer if the help text said:
-t is not optional, it's required. We should change the api or the docs to reflect that. See suggestion below.
Can we make this
Can we do automatic topic creation? Not sure of the security implications, but it'd be required one way or the other I think. If you think of chat rooms, it'd be good to have the possibility to "claim" a channel, ie. create a topic in pubsub.
Would be cool if I could publish several "chunks" at a time
Noticed also that unix pipes don't work yet. It'd be cool to be able to do something like