3 ms·
>Web APIs don't provide the facilities necessary for a complete bittorrent stack. TCP and UDP sockets are essential (this thing uses webrtc, so it's not even bi
by M2Ys4U 12y ago
>Web APIs don't provide the facilities necessary for a complete bittorrent stack. TCP and UDP sockets are essential (this thing uses webrtc, so it's not even bittorrent-compliant).
While it's only available to privileged and certified apps, Mozilla's TCPSocket Web API[0] gives you (unsurprisingly, given the name) raw TCP sockets.
The W3C also has a TCP and UDP Socket API[1] under development.
Obviously, exposing raw TCP/UDP sockets to the open web is a Bad Idea but Web Apps are more than that.
[0] https://developer.mozilla.org/en-US/docs/Web/API/TCPSocket https://developer.mozilla.org/en-US/docs/Web/API/TCPSocket
[1] http://www.w3.org/2012/sysapps/tcp-udp-sockets/ http://www.w3.org/2012/sysapps/tcp-udp-sockets/
- dragonwriter 12y agoChrome also a set of raw socket API [1] covering UDP, TCP client, and TCP server sockets. [1] https://developer.chrome.com/apps/app_network https://developer.chrome.com/apps/app_network