There is no good reason why this cannot be done today. BitTorrent / uTorrent has code to support websocket connections with binary frames. However, they are currently compiled without support (due to political reasons for which I think). I worked at BitTorrent, and another engineer ( Arty ) wrote support. For some time it was really cool to download torrents on iPad from mobile Safari. (just save on Google Drive)
HTTP trackers can be configured to send Access-Control-Allow-Origin headers.
Also, the tracker announcement protocol can use a bit in the "key" field to indicate that the client is accepting web socket connections. Then a special argument of type "typewant" may indicate that the response of the advertisement should return only those clients who sent this bit.
The tracker protocol can also be expanded in the same way as negotiating support for WebCTC P2P DataChannel connections, so that connections can be made directly by the browser ↔ browser.
We currently have the chrome.socket and jstorrent platform APIs, a chrome package application (mainly for ChromeOS)
kzahel Aug 21 '13 at 3:48 on 2013-08-21 03:48
source share