How are data channels negotiated between two peers with WebRTC?

后端 未结 2 1340
梦毁少年i
梦毁少年i 2021-02-15 05:01

The WebRTC RTCPeerConnection interface has a createDataChannel method and an ondatachannel event handler. How do these interact? How do I create a single data chann

2条回答
  •  暗喜
    暗喜 (楼主)
    2021-02-15 05:35

    Here's a very in-depth article about the particulars of peer-to-peer...

    https://blog.sessionstack.com/how-javascript-works-webrtc-and-the-mechanics-of-peer-to-peer-connectivity-87cc56c1d0ab

    Primary sources...

    • https://developer.mozilla.org/en-US/docs/Web/API/RTCPeerConnection
    • https://developer.mozilla.org/en-US/docs/Web/API/Media_Streams_API
    • https://developer.mozilla.org/en-US/docs/Web/API/RTCDataChannel

    The mother load of peer-to-peer projects...

    https://github.com/kgryte/awesome-peer-to-peer

提交回复
热议问题