diff --git a/SPEC/PUBSUB.md b/SPEC/PUBSUB.md index 71e80db1..8c829262 100644 --- a/SPEC/PUBSUB.md +++ b/SPEC/PUBSUB.md @@ -101,9 +101,8 @@ A great source of [examples][] can be found in the tests for this API. ##### `Go` **WIP** -##### `JavaScript` - ipfs.pubsub.ls(topic, callback) +##### `JavaScript` - ipfs.pubsub.ls(callback) -- `topic: string` - `callback: (Error, Array>) => ()` - Calls back with an error or a list of topicCIDs that this peer is subscribed to. If no `callback` is passed, a promise is returned.