Back to Samples

WebRTC samples Transmit text

src/content/datachannel/basic/index.html

latest630 B
Original Source

WebRTC samplesTransmit text

StartSendStop

Send

Receive

View the console to see logging.

The RTCPeerConnection objects pc1 and pc2 are in global scope, so you can inspect them in the console as well.

For more information about RTCDataChannel, see Getting Started With WebRTC.

View source on GitHub