HTML, CSS and JavaScript feature support across top browsers: RTCDataChannel



View the console to see logging.

The RTCPeerConnection objects localConnection and remoteConnection 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