Can HTML5 Websockets connect 2 clients (browsers) directly without using a server? (P2P)

后端 未结 3 1359
失恋的感觉
失恋的感觉 2020-12-02 13:11

Using HTML5 Websockets, can I open a socket directly between 2 clients (browsers) (assuming I know their IP addresses and there are no NAT traversal issues). I want to send

3条回答
  •  盖世英雄少女心
    2020-12-02 13:42

    From past to future: Pick your implementation.

    • Most modern browsers support peer to proxy to peer using Websockets.
    • Peer to peer is only available using certain browsers plug-ins for example Opera Unite and FireFox Pow.
    • Major browsers are in the process of implementing WebRTC which will allow peer to peer.

提交回复
热议问题