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
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
da5036424b
fix exception in websocket tracker
2015-05-30 14:20:42 -07:00
Feross Aboukhadijeh
ac2c3d06d8
client: Re-use WebSocket connections
...
Use a socket pool, so tracker clients share WebSocket objects for the
same server.
In practice, WebSockets are pretty slow to establish, so this gives a
nice performance boost, and saves browser resources.
2015-05-27 13:09:15 +02:00
Feross Aboukhadijeh
3be06d6684
always produce valid urls with trailing /
...
Fixes this error:
ERROR: connection error to wss://tracker.webtorrent.io?1fe16837ed
ERROR: If you think this is a bug in webtorrent, report it!
2015-05-22 16:21:55 +02:00
Feross Aboukhadijeh
c1bbade6d7
cache infohash and peerid
2015-05-20 06:45:59 -07:00
Feross Aboukhadijeh
bb145cce14
ws client: ignore offers/answers from self
2015-05-20 06:40:25 -07:00
Feross Aboukhadijeh
d40eeccf4d
limit webrtc offers to 10
2015-05-19 04:32:17 -07:00
Feross Aboukhadijeh
2505e13009
after socket destroy, ignore all future errors
2015-05-17 13:53:36 -07:00
Feross Aboukhadijeh
d78b678f5b
fix regression: double cleanup bug
2015-05-17 01:47:12 -07:00
Feross Aboukhadijeh
0482c01a47
ws client: better offline reconnect behavior
...
Fixes https://github.com/feross/webtorrent/issues/318
2015-05-17 00:07:21 -07:00
Feross Aboukhadijeh
8788d75737
udp/ws clients: add destroy functions
...
Fixes #75
2015-05-16 23:25:34 -07:00
Feross Aboukhadijeh
2b48883742
ws tracker: JSON.stringify messages
2015-05-05 23:05:10 -07:00
Feross Aboukhadijeh
938c025ed9
remove wrtc
dependency
...
For #303
2015-05-03 17:21:08 -07:00
Feross Aboukhadijeh
9a6e854609
Limit number of WebRTC offers to only 5
2015-05-03 16:53:37 -07:00
Feross Aboukhadijeh
ee3ea92c47
fix webrtc support detection in browser
2015-04-23 23:27:12 -07:00
Feross Aboukhadijeh
814b167e8a
bittorrent-tracker/client should work if wrtc
fails to install
2015-04-23 22:48:39 -07:00
Feross Aboukhadijeh
e0afafc776
don't return empty wrtc object in browser
2015-04-23 21:15:40 -07:00
Feross Aboukhadijeh
a5d0975dfa
Do not crash when wrtc
dep is missing
2015-04-20 16:38:59 -07:00
Feross Aboukhadijeh
f302bee0bb
simple-websocket@2
2015-04-11 11:58:21 +12:00
Feross Aboukhadijeh
7e7062d2ae
websocket tracker server/client: fix binary vs. hex bugs
2015-03-29 21:08:26 +13:00
Feross Aboukhadijeh
13e7ff7057
set self._opts correctly
2015-03-29 20:41:25 +13:00
Feross Aboukhadijeh
df8de6f608
client/websocket: warning on invalid info_hash
2015-03-29 20:40:21 +13:00
Feross Aboukhadijeh
b269fb9db4
fix debug statements
2015-03-29 20:39:18 +13:00
Feross Aboukhadijeh
1ff5769054
add support for webtorrent (websocket) trackers
2015-03-24 01:52:35 -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