simpl.info RTCDataChannel

Send

Receive

View the console to see logging.

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

Code in this example used by kind permission of Vikas Marwaha.

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

View source on GitHub