HTML, CSS and JavaScript feature support across top browsers:

bit.ly/caniuse-stuff

simpl.info RTCDataChannel

Send

Receive

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