Skip to content

Commit

Permalink
Updated readme.
Browse files Browse the repository at this point in the history
  • Loading branch information
tinchoz49 committed Sep 13, 2019
1 parent 26eb04c commit 82df72e
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,12 @@ Leave from specific channel. Destroy all the connections and leave the channel.

Close the entire swarm. Destroy all the connections and disconnect from the signal.

#### `sw.peers(channel?) -> [Peer]`

Returns the list of peers for a specific channel.

Channel is `optional`, if you don't pass it you get the entire list of peers.

### Events

#### `sw.on('handshaking', function(connection, info) { ... })`
Expand Down

0 comments on commit 82df72e

Please sign in to comment.