Skip to content

Commit

Permalink
add more checks on replication calls
Browse files Browse the repository at this point in the history
  • Loading branch information
mixmix committed Dec 1, 2020
1 parent bb87f91 commit 4a24a46
Show file tree
Hide file tree
Showing 5 changed files with 4,436 additions and 15 deletions.
2 changes: 1 addition & 1 deletion .npmrc
Original file line number Diff line number Diff line change
@@ -1 +1 @@
package-lock=false
package-lock=true
10 changes: 9 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -42,11 +42,19 @@ where `<dist>` is a non-zero number. (negative indicates blocking).
a value of 1 < 1.5 is considered to mean "follows" and 0 < 0.5 is considered to mean "same as"
-->

### `ssb.friends.hopStream () => Source`
### `ssb.friends.hopStream (opts) => Source`

return a stream of hops objects `{<id>:<dist>,...}`, the first item is the current state,
any following objects are updates caused by someone in your network following, unfollowing or blocking someone.

`opts` is an optional Object with keys:
```js
{
live: Boolean,
old: Boolean
}
```

### `ssb.friends.onEdge (fn) => removeListener`

subscribe to changes in the graph.
Expand Down

0 comments on commit 4a24a46

Please sign in to comment.