You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Mar 10, 2020. It is now read-only.
Copy file name to clipboardExpand all lines: API/pubsub/README.md
+5-4Lines changed: 5 additions & 4 deletions
Original file line number
Diff line number
Diff line change
@@ -11,7 +11,7 @@ pubsub API
11
11
12
12
-`topic: string`
13
13
-`options: Object` - (Optional), might contain the following properties:
14
-
-`discover`: type: Boolean - Will use the DHT to find
14
+
-`discover`: type: Boolean - Will use the DHT to find other peers.
15
15
-`handler: (msg) => ()` - Event handler which will be called with a message object everytime one is received. The `msg` has the format `{from: string, seqno: Buffer, data: Buffer, topicCIDs: Array<string>}`.
16
16
-`callback: (Error) => ()` (Optional) Called once the subscription is established.
17
17
@@ -41,9 +41,10 @@ This works like `EventEmitter.removeListener`, as that only the `handler` passed
0 commit comments