Commit Graph

782 Commits

Author SHA1 Message Date
Feross Aboukhadijeh
03bed33457 add webtorrent (websocket) tracker server
This PR merges webtorrent-tracker into this repo. Keeping the code in
sync between the two repos was becoming burdensome. This change should
not effect performance of the server since the webtorrent tracker is
disabled by default.

To enable the webtorrent tracker (disabled by default), do:

```js
var server = new Server({ ws: true })
```
2015-03-27 16:19:06 +13:00
Feross Aboukhadijeh
5c08723e2f travis: test iojs, node 0.12 2015-03-27 16:05:18 +13:00
Feross Aboukhadijeh
1ff5769054 add support for webtorrent (websocket) trackers 2015-03-24 01:52:35 -07:00
Feross Aboukhadijeh
d759456d7a test: speed up 2015-03-24 01:02:10 -07:00
Feross Aboukhadijeh
f575cfc3c9 major client refactor - each tracker type into its own file
in preparation of adding a new websocket tracker type, for webtorrent
2015-03-24 01:01:49 -07:00
Feross Aboukhadijeh
d991983f5f readme 2015-03-20 03:02:43 -07:00
Feross Aboukhadijeh
f144cf2423 readme: document command line usage 2015-03-20 03:01:44 -07:00
Feross Aboukhadijeh
c80ba48a0d 3.2.1 2015-03-19 21:53:19 -07:00
Feross Aboukhadijeh
eb5a4760e4 add "bin" field to package.json 2015-03-19 21:52:58 -07:00
Feross Aboukhadijeh
3bf77c733a 3.2.0 2015-03-19 21:51:00 -07:00
Feross Aboukhadijeh
4afba4bc7d standard@3 2015-03-19 21:50:29 -07:00
Feross Aboukhadijeh
9ace2f5d3a add command line server
Fixes #26
2015-03-19 21:47:47 -07:00
Feross Aboukhadijeh
8f977ee7d3 3.1.4 2015-03-09 20:19:51 -07:00
Feross Aboukhadijeh
67daf78c2d style 2015-03-09 20:19:27 -07:00
Feross Aboukhadijeh
54dfc6d7e9 Merge pull request #64 from zckevin/master
[Client] Fix question mark in announceUrl
2015-03-09 20:17:43 -07:00
zckevin
8ee64c05f8 [Client] Fix question mark in announceUrl 2015-03-09 12:40:35 +08:00
Feross Aboukhadijeh
57cef88169 style: always use braces except for single-line 2015-03-06 18:12:59 -08:00
Feross Aboukhadijeh
1808290d7a 3.1.3 2015-02-28 17:53:55 -05:00
Feross Aboukhadijeh
888d89247d parse-torrent@4 2015-02-28 17:53:35 -05:00
Feross Aboukhadijeh
dc4a4cd69d bn.js@2 2015-02-28 17:53:28 -05:00
Feross Aboukhadijeh
ac5e08311e bencode@0.7 2015-02-28 17:53:23 -05:00
Feross Aboukhadijeh
fee5975a0b 3.1.2 2015-02-19 12:56:47 -08:00
Feross Aboukhadijeh
8f3ccc5735 Merge branch 'nrafter-filter-update' 2015-02-19 12:56:17 -08:00
Feross Aboukhadijeh
bdc7edea70 preserve backwards compatibility 2015-02-19 12:56:09 -08:00
Nick Rafter
de19b61c52 Exposed full http request to filter function for more configurable filtering 2015-02-19 12:01:46 -05:00
Feross Aboukhadijeh
a5cadcc210 3.1.1 2015-02-06 15:56:59 -08:00
Feross Aboukhadijeh
86bcbfaab2 Merge pull request #60 from feross/no-force-http-udp
server: rm check for http/udp option
2015-02-06 15:56:11 -08:00
Astro
138bdb8573 server: rm check for http/udp option
my use-case brings its own http server, i just use onHttpRequest()
2015-02-06 18:16:47 +01:00
Feross Aboukhadijeh
424bc3cd11 3.1.0 2015-02-05 18:27:37 -08:00
Astro
3101afd431 Merge pull request #59 from feross/issue-58
Allow more control over HTTP routing
2015-02-06 03:05:09 +01:00
Astro
b33531d835 server: allow onHttpRequest() with options={ action: 'announce' } for custom routing
For GH issue #58
2015-02-04 20:35:52 +01:00
Astro
e1b7fa7e5c server: save HTTP req/res in params
For GH issue #58
2015-02-04 20:34:46 +01:00
Feross Aboukhadijeh
73ef97239b 3.0.3 2015-02-02 15:20:38 -08:00
Feross Aboukhadijeh
6ac9ae6a6e perf: don't dynamically add new properties to peer objects 2015-02-02 15:20:15 -08:00
Feross Aboukhadijeh
a65c733125 3.0.2 2015-01-31 15:26:00 -08:00
Feross Aboukhadijeh
72922a64e4 fix regression in 3.0.1 2015-01-31 15:25:37 -08:00
Feross Aboukhadijeh
dd23967082 3.0.1 2015-01-31 15:04:39 -08:00
Feross Aboukhadijeh
287cd873bc remove extend.js 2015-01-31 15:04:16 -08:00
Feross Aboukhadijeh
c2fb38b9e3 3.0.0 2015-01-29 14:59:34 -08:00
Feross Aboukhadijeh
82e6792a6b BREAKING CHANGES
Breaking changes:
- 'listening' event no longer emits with `port` param
- `server.port` property removed (instead, use
`server.http.address().port`)

Added features:
- expose http server as `server.http`
- expose udp server as `server.udp`
- client.destroy() - ungracefully leave the swarm
- server: added `filter` option to black/whitelist torrents

Bugfixes:
- client considers udp tracker errors to be warnings
- emit 'start', 'stop', 'update', etc. AFTER response sent
- fix udp error response action and message being `undefined`

Internal:
- remove `portfinder` dep
- add complete test for `filter` functionality
2015-01-29 14:59:08 -08:00
Feross Aboukhadijeh
098ec7041c Merge branch 's1dd-master' 2015-01-29 13:27:00 -08:00
Sidd Sridharan
55079798c5 white/blacklist implemented (#44) + docs/tests updated 2015-01-29 12:24:17 -08:00
Feross Aboukhadijeh
474ce73c93 standard@2 2015-01-28 19:26:55 -08:00
Feross Aboukhadijeh
812c2ded4e style 2015-01-28 18:18:47 -08:00
Feross Aboukhadijeh
a6f14037ff style 2015-01-28 18:09:23 -08:00
Feross Aboukhadijeh
ebb86f728f JavaScript Standard Style
https://github.com/feross/standard
2015-01-26 18:16:01 -08:00
Feross Aboukhadijeh
556f672028 Update README.md 2015-01-25 19:17:51 -08:00
Feross Aboukhadijeh
26c5f43783 update feature list 2015-01-25 19:16:46 -08:00
Feross Aboukhadijeh
a096d27d7a 2.12.1 2015-01-23 22:42:25 -08:00
Feross Aboukhadijeh
d562f14e06 fix debug usage 2015-01-23 22:42:05 -08:00