by lenni · 15y ago · 0 comments
What does an P2P-API do? Surely, all you need for a P2P application/protocol is a WebSocket. If you invent a new app for P2P you'd want to tailor it to your specific need, no?
More info here:
http://peter.sh/2011/03/css-quotes-mock-ups-of-the-html5-dat...
http://src.chromium.org/viewvc/chrome?view=rev&revision=...
http://src.chromium.org/viewvc/chrome?view=rev&revision=...
http://www.whatwg.org/specs/web-apps/current-work/multipage/...
Don't be fooled by the name. Websockets are not a general socket interface in the web browser. It is simply an API and protocol for establishing a persistent, bidirectional communication channel between the browser and the server in order to better support applications like chat, notifications, live editing features, and the like, without having to resort to COMET techniques like polling, long-polling, and so on.
And that API could be extended to support p2p design patterns if browsers decided to do so.