Skip to content

Commit d8fa6aa

Browse files
author
Tuyen
committedMar 19, 2020
Document 'messageCache' option
1 parent 4033b8b commit d8fa6aa

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed
 

‎README.md

+1
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,7 @@ Options is an optional object with the following key-value pairs:
6868
* **`fallbackToFloodsub`**: boolean identifying whether the node should fallback to the floodsub protocol, if another connecting peer does not support gossipsub (defaults to **true**).
6969
* **`emitSelf`**: boolean identifying whether the node should emit to self on publish, in the event of the topic being subscribed (defaults to **false**).
7070
* **`msgIdFn`**: a function with signature `(message) => string` defining the message id given a message, used internally to deduplicate gossip (defaults to `(message) => message.from + message.seqno.toString('hex')`)
71+
* **`messageCache`**: optional, a customized `MessageCache` instance, see the implementation for the interface.
7172

7273
For the remaining API, see https://github.com/libp2p/js-libp2p-pubsub
7374

0 commit comments

Comments
 (0)
Please sign in to comment.