add udp/http option docs

This commit is contained in:
Feross Aboukhadijeh 2014-05-23 18:06:29 -07:00
parent 0176c3d09b
commit 9c8e3ab62a

View File

@ -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!