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: SPEC/NAME.md
+92-2Lines changed: 92 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -2,6 +2,9 @@
2
2
3
3
*[name.publish](#namepublish)
4
4
*[name.resolve](#nameresolve)
5
+
*[name.pubsub.cancel](#namepubsubcancel)
6
+
*[name.pubsub.state](#namepubsubstate)
7
+
*[name.pubsub.subs](#namepubsubsubs)
5
8
6
9
#### `name.publish`
7
10
@@ -76,6 +79,8 @@ This way, you can republish a new version of your website under the same address
76
79
77
80
`callback` must follow `function (err, name) {}` signature, where `err` is an error if the operation was not successful. `name` is a string that contains the IPFS hash.
78
81
82
+
`callback` must follow `function (err, result) {}` signature, where `err` is an error if the operation was not successful. `result` is an object that contains the resulting path, such as:
83
+
79
84
If no `callback` is passed, a promise is returned.
80
85
81
86
**Example:**
@@ -84,8 +89,93 @@ If no `callback` is passed, a promise is returned.
`callback` must follow `function (err, result) {}` signature, where `err` is an error if the operation was not successful. `result` is an object that contains the result of the operation, such as:
109
+
110
+
```JavaScript
111
+
{
112
+
canceled:true
113
+
}
114
+
```
115
+
116
+
If no `callback` is passed, a promise is returned.
`callback` must follow `function (err, result) {}` signature, where `err` is an error if the operation was not successful. `result` is an object that contains the result of the operation, such as:
138
+
139
+
```JavaScript
140
+
{
141
+
enabled:true
142
+
}
143
+
```
144
+
145
+
If no `callback` is passed, a promise is returned.
`callback` must follow `function (err, result) {}` signature, where `err` is an error if the operation was not successful. `result` is an object that contains the result of the operation, such as:
0 commit comments