Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/webtorrent/webtorrent.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--README.md12
-rw-r--r--docs/api.md7
2 files changed, 14 insertions, 5 deletions
diff --git a/README.md b/README.md
index 3b04e8b..64cd3ee 100644
--- a/README.md
+++ b/README.md
@@ -68,7 +68,8 @@ they can connect to both normal *and* web peers. We hope other clients will foll
- Supports advanced torrent client features
- **magnet uri** support via **[ut_metadata](https://github.com/webtorrent/ut_metadata)**
- **peer discovery** via **[dht](https://github.com/webtorrent/bittorrent-dht)**,
- **[tracker](https://github.com/webtorrent/bittorrent-tracker)**, and
+ **[tracker](https://github.com/webtorrent/bittorrent-tracker)**,
+ **[lsd](https://github.com/webtorrent/bittorrent-lsd)**, and
**[ut_pex](https://github.com/fisch0920/ut_pex)**
- **[protocol extension api](https://github.com/webtorrent/bittorrent-protocol#extension-api)**
for adding new extensions
@@ -298,11 +299,12 @@ These are the main modules that make up WebTorrent:
| [bittorrent-peerid][bittorrent-peerid] | [![][bittorrent-peerid-ti]][bittorrent-peerid-tu] | [![][bittorrent-peerid-ni]][bittorrent-peerid-nu] | identify client name/version
| [bittorrent-protocol][bittorrent-protocol] | [![][bittorrent-protocol-ti]][bittorrent-protocol-tu] | [![][bittorrent-protocol-ni]][bittorrent-protocol-nu] | bittorrent protocol stream
| [bittorrent-tracker][bittorrent-tracker] | [![][bittorrent-tracker-ti]][bittorrent-tracker-tu] | [![][bittorrent-tracker-ni]][bittorrent-tracker-nu] | bittorrent tracker server/client
+| [bittorrent-lsd][bittorrent-lsd] | [![][bittorrent-lsd-ti]][bittorrent-lsd-tu]] | [![][bittorrent-lsd-ni]][bittorrent-lsd-nu] | bittorrent local service discovery
| [create-torrent][create-torrent] | [![][create-torrent-ti]][create-torrent-tu] | [![][create-torrent-ni]][create-torrent-nu] | create .torrent files
| [magnet-uri][magnet-uri] | [![][magnet-uri-ti]][magnet-uri-tu] | [![][magnet-uri-ni]][magnet-uri-nu] | parse magnet uris
| [parse-torrent][parse-torrent] | [![][parse-torrent-ti]][parse-torrent-tu] | [![][parse-torrent-ni]][parse-torrent-nu] | parse torrent identifiers
| [render-media][render-media] | [![][render-media-ti]][render-media-tu] | [![][render-media-ni]][render-media-nu] | intelligently render media files
-| [torrent-discovery][torrent-discovery] | [![][torrent-discovery-ti]][torrent-discovery-tu] | [![][torrent-discovery-ni]][torrent-discovery-nu] | find peers via dht and tracker
+| [torrent-discovery][torrent-discovery] | [![][torrent-discovery-ti]][torrent-discovery-tu] | [![][torrent-discovery-ni]][torrent-discovery-nu] | find peers via dht, tracker, and lsd
| [ut_metadata][ut_metadata] | [![][ut_metadata-ti]][ut_metadata-tu] | [![][ut_metadata-ni]][ut_metadata-nu] | metadata for magnet uris (protocol extension)
| [ut_pex][ut_pex] | [![][ut_pex-ti]][ut_pex-tu] | [![][ut_pex-ni]][ut_pex-nu] | peer discovery (protocol extension)
@@ -338,6 +340,12 @@ These are the main modules that make up WebTorrent:
[bittorrent-tracker-ni]: https://img.shields.io/npm/v/bittorrent-tracker.svg
[bittorrent-tracker-nu]: https://www.npmjs.com/package/bittorrent-tracker
+[bittorrent-lsd]: https://github.com/webtorrent/bittorrent-lsd
+[bittorrent-lsd-ti]: https://img.shields.io/travis/webtorrent/bittorrent-lsd/master.svg
+[bittorrent-lsd-tu]: https://travis-ci.org/webtorrent/bittorrent-lsd
+[bittorrent-lsd-ni]: https://img.shields.io/npm/v/bittorrent-lsd.svg
+[bittorrent-lsd-nu]: https://www.npmjs.com/package/bittorrent-lsd
+
[create-torrent]: https://github.com/webtorrent/create-torrent
[create-torrent-ti]: https://img.shields.io/travis/webtorrent/create-torrent/master.svg
[create-torrent-tu]: https://travis-ci.org/webtorrent/create-torrent
diff --git a/docs/api.md b/docs/api.md
index e965764..b0700d9 100644
--- a/docs/api.md
+++ b/docs/api.md
@@ -58,8 +58,9 @@ If `opts` is specified, then the default options (shown below) will be overridde
peerId: String|Buffer, // Wire protocol peer ID (default=randomly generated)
tracker: Boolean|Object, // Enable trackers (default=true), or options object for Tracker
dht: Boolean|Object, // Enable DHT (default=true), or options object for DHT
- webSeeds: Boolean // Enable BEP19 web seeds (default=true)
- utp: Boolean // Enable BEP29 uTorrent transport protocol (default=false)
+ lsd: Boolean, // Enable BEP14 local service discovery (default=true)
+ webSeeds: Boolean, // Enable BEP19 web seeds (default=true)
+ utp: Boolean, // Enable BEP29 uTorrent transport protocol (default=false)
}
```
@@ -529,7 +530,7 @@ information on how to define a protocol extension.
## `torrent.on('noPeers', function (announceType) {})`
-Emitted whenever a DHT or tracker announce occurs, but no peers have been found. `announceType` is either `'tracker'` or `'dht'` depending on which announce occurred to trigger this event. Note that if you're attempting to discover peers from both a tracker and a DHT, you'll see this event separately for each.
+Emitted whenever a DHT, tracker or LSD announce occurs, but no peers have been found. `announceType` is either `'tracker'`, `'dht'` or `'lsd'` depending on which announce occurred to trigger this event. Note that if you're attempting to discover peers from a tracker, a DHT and LSD, you'll see this event separately for each.
# File API