Skip to content

Commit 70b39d4

Browse files
committed
add javadoc to pubsub.pub
1 parent f85eb8a commit 70b39d4

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

src/main/java/io/ipfs/api/IPFS.java

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -235,6 +235,13 @@ public Object peers(String topic) throws IOException {
235235
return retrieveAndParse("pubsub/peers?topic="+topic);
236236
}
237237

238+
/**
239+
*
240+
* @param topic
241+
* @param data url encoded data to be published
242+
* @return
243+
* @throws IOException
244+
*/
238245
public Object pub(String topic, String data) throws IOException {
239246
return retrieveAndParse("pubsub/pub?arg="+topic + "&arg=" + data);
240247
}

0 commit comments

Comments
 (0)