Commit Graph

887 Commits

Author SHA1 Message Date
Feross Aboukhadijeh
96cd1b0a05 fix "browser" exclusions 2015-10-23 17:31:34 -07:00
Feross Aboukhadijeh
95457763e4 6.0.5 2015-09-18 15:59:34 -07:00
Feross Aboukhadijeh
4a140ed4c9 ws@0.8 2015-09-18 15:54:00 -07:00
Feross Aboukhadijeh
35db2a8510 ip@1 2015-09-18 15:49:35 -07:00
Feross Aboukhadijeh
e6450466a7 standard@5 2015-09-18 15:45:42 -07:00
Feross Aboukhadijeh
6a702d612c 6.0.4 2015-08-24 00:12:11 +02:00
Feross Aboukhadijeh
abbb076484 client: interval.unref() 2015-08-24 00:11:48 +02:00
Feross Aboukhadijeh
d29367a4a0 if server.close() is called, end http response object 2015-08-24 00:11:21 +02:00
Feross Aboukhadijeh
c0f84f9610 Merge pull request #91 from LinusU/standard-style
adhere to padded-blocks
2015-08-14 23:37:36 +02:00
Linus Unnebäck
4ef0426b90 adhere to padded-blocks 2015-08-14 22:31:22 +02:00
Feross Aboukhadijeh
963fd533de 6.0.3 2015-08-06 14:52:43 +02:00
Feross Aboukhadijeh
d34ffde5a5 fix "npm docs" command 2015-08-06 14:50:10 +02:00
Feross Aboukhadijeh
6935841d56 better debug log 2015-07-29 05:19:57 -07:00
Feross Aboukhadijeh
14d3b5fad6 6.0.2 2015-07-29 03:57:26 -07:00
Feross Aboukhadijeh
6ef2d98b07 client: websocket-tracker: announce on reconnect
when coming back from being offline, or losing the websocket
connection, announcing immediately means peers will be found faster
(for us and remote peers who may be sitting at 0 peers)
2015-07-29 03:56:22 -07:00
Feross Aboukhadijeh
7c0bbcddd4 6.0.1 2015-07-29 03:22:44 -07:00
Feross Aboukhadijeh
4128604301 remove socket from pool on destroy 2015-07-29 03:21:31 -07:00
Feross Aboukhadijeh
2061eb9818 6.0.0 2015-07-29 02:13:11 -07:00
Feross Aboukhadijeh
f5d2810c89 Announce to websocket tracker every 30 seconds (for #338) 2015-07-29 02:12:14 -07:00
Feross Aboukhadijeh
9db28c2fad massive cleanup 2015-07-29 01:47:09 -07:00
Feross Aboukhadijeh
3746c05d79 restructure folders 2015-07-29 00:26:44 -07:00
Feross Aboukhadijeh
2dc56de223 rename files 2015-07-29 00:06:59 -07:00
Feross Aboukhadijeh
67abef4545 5.3.2 2015-07-27 15:47:38 -07:00
Feross Aboukhadijeh
5aa0696a34 fix crash, oops 2015-07-27 15:46:49 -07:00
Feross Aboukhadijeh
69e8528cb4 5.3.1 2015-07-27 15:29:13 -07:00
Feross Aboukhadijeh
c8fcf81908 fix for node 0.10 2015-07-27 15:28:23 -07:00
Feross Aboukhadijeh
a49a0d8d18 remove stray log 2015-07-27 15:24:34 -07:00
Feross Aboukhadijeh
04112fb976 5.3.0 2015-07-27 15:20:09 -07:00
Feross Aboukhadijeh
c3abef72ce tracker should not modify opts object, it's passed to all trackers 2015-07-27 15:19:18 -07:00
Feross Aboukhadijeh
53c973b4ae 5.2.1 2015-07-22 16:31:39 -07:00
Feross Aboukhadijeh
c4ee7aae36 fix thrown exception when websocket connection is aborted
alternative to https://github.com/feross/bittorrent-tracker/pull/89
2015-07-22 16:30:52 -07:00
Feross Aboukhadijeh
e6f9989310 5.2.0 2015-07-16 18:34:50 -07:00
Feross Aboukhadijeh
c42335af43 unref timer 2015-07-16 18:33:54 -07:00
Feross Aboukhadijeh
5b79d42dcd client: destroy callback isn't called until after cleanup 2015-07-16 18:33:50 -07:00
Feross Aboukhadijeh
82aea33dfa add server.ws.address() function 2015-07-16 18:31:13 -07:00
Feross Aboukhadijeh
907691b914 jsdoc 2015-07-09 15:39:40 -07:00
Feross Aboukhadijeh
81c323da2d readme 2015-07-08 10:32:41 -07:00
Feross Aboukhadijeh
43a425ee57 5.1.0 2015-07-08 10:14:59 -07:00
Feross Aboukhadijeh
0b75c1ef26 client.destroy takes a callback 2015-07-08 10:14:11 -07:00
Feross Aboukhadijeh
53a8390a74 bn.js@3 2015-07-08 10:14:01 -07:00
Feross Aboukhadijeh
89b3fb3086 support custom filter error messages
In addition to returning a boolean (`true` for allowed, `false` for
disallowed), you can return an `Error` object to disallow and provide a
custom reason.

Fixes #85
2015-07-08 10:13:52 -07:00
Feross Aboukhadijeh
f13accfc42 server: Enable WebSocket server by default 2015-07-08 09:44:00 -07:00
Feross Aboukhadijeh
834bf1db5e server: http reqs 404 when only ws server is used 2015-07-08 09:43:47 -07:00
Feross Aboukhadijeh
0b88a7a552 5.0.1 2015-07-06 17:49:23 -07:00
Feross Aboukhadijeh
b5d8748db4 fix crash on invalid udp tracker response 2015-07-06 17:48:39 -07:00
Feross Aboukhadijeh
7ea2a138d3 cmd: better help 2015-07-06 16:56:36 -07:00
Feross Aboukhadijeh
422db58a4e 5.0.0 2015-07-04 17:15:53 -07:00
Feross Aboukhadijeh
687f580ed8 readme 2015-07-04 17:15:07 -07:00
Feross Aboukhadijeh
bf5b9f289a BREAKING: opts.filter function is async; add createSwarm
- The expected signature for opts.filter is now:

function myFilterFn (infoHash, params, cb) {
  cb(infoHash === 'blah)
}

This allows interfacing with a database and fixes #80.

Also, swarm.getSwarm() is no longer responsible for creating a Swarm
instance, only returning an instance if there is already one. Creating
a swarm happens in swarm.createSwarm(). This change only affects users
who were override swarm.getSwarm().
2015-07-04 17:13:07 -07:00
Feross Aboukhadijeh
37f95b4b54 small cleanup 2015-07-04 17:10:41 -07:00