Skip to content
This repository was archived by the owner on Mar 10, 2020. It is now read-only.

Commit 0409e3a

Browse files
joeltgdaviddias
authored andcommitted
fix: Update PUBSUB.md (#204)
The documentation for `pubsub.ls` is wrong here, although example is accurate. `ls` takes no arguments except for an optional callback; I think the erroneous `topic` argument was copied from the `pubsub.peers` documentation.
1 parent 803a3ef commit 0409e3a

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

SPEC/PUBSUB.md

+1-2
Original file line numberDiff line numberDiff line change
@@ -101,9 +101,8 @@ A great source of [examples][] can be found in the tests for this API.
101101
102102
##### `Go` **WIP**
103103

104-
##### `JavaScript` - ipfs.pubsub.ls(topic, callback)
104+
##### `JavaScript` - ipfs.pubsub.ls(callback)
105105

106-
- `topic: string`
107106
- `callback: (Error, Array<string>>) => ()` - Calls back with an error or a list of topicCIDs that this peer is subscribed to.
108107

109108
If no `callback` is passed, a promise is returned.

0 commit comments

Comments
 (0)