mirror of
https://github.com/webtorrent/bittorrent-tracker.git
synced 2025-01-31 10:31:36 +00:00
add udp/http option docs
This commit is contained in:
parent
0176c3d09b
commit
9c8e3ab62a
@ -90,7 +90,10 @@ To start a BitTorrent tracker server to track swarms of peers:
|
||||
```js
|
||||
var Server = require('bittorrent-tracker').Server
|
||||
|
||||
var server = new Server()
|
||||
var server = new Server({
|
||||
udp: true, // enable udp server? [default=true]
|
||||
http: true // enable http server? [default=true]
|
||||
})
|
||||
|
||||
server.on('error', function (err) {
|
||||
// fatal server error!
|
||||
|
Loading…
Reference in New Issue
Block a user