Is it possible to create peer-to-peer connections

2019-01-28 04:58发布

问题:

I am aware that an early draft of HTML5 specified peer-to-peer connections using the PeerToPeerConnection() constructor. However, this was replaced by WebSocket which, to my knowledge, does not support peer-to-peer connections.

In addition, the device element specifies a peer-to-peer connection interface, however no web browsers have implemented it yet.

回答1:

Opera Unite allows Peer to peer (basically gives your browser web server, file system and nat-traversal capabilities), but this is Opera only.



回答2:

It's not exactly P2P, but you can use proxy server using push mechanism

http://en.wikipedia.org/wiki/Push_technology

For example if you want to send data from Browser A to Browser B, you send that data to proxy server and that server push it to Browser B.