WebRTC Data Channel

Dan Ristic - Developer Evangelist

WebRTC Data Channel

High Performance Peer to Peer Data

Dan Ristic - Developer Evangelist


What the Heck is Real-Time?

Google Earth

"But why aren't these live pictures of the earth?"

There is Something Fundamental About Real-Time

How long do we have to engage users?

The WebRTC Data Channel is a High Performance, Low Latency Connection to Other Browsers

Browser A
Browser B



How Does it Work?

var peerConnection = new RTCPeerConnection();

var dataChannel = peerConnection.createDataChannel("myLabel", { 
  reliable: true 

dataChannel.onerror = function (err) {
  console.log("Channel Error:", err);

dataChannel.onmessage = function (event) {
  console.log("Got Message:", event.data);

dataChannel.send("Hello World!");

Is it Ready?


All data uses DTLS for security, but speed is the bigger concern so private data should be encrypted

The biggest threat is other users sending malicious data

Other Considerations

The End of Servers?

User IDs

New Levels of Data

Going from

Re-Think Development

Signaling Triangle

Utilizing cloud services are a way to present a full featured solution for users

What Can We Do?

Better Device to Device Experience

Device to Device

All of your client devices can communicate with each other opening up new ways to interact with your applications.

Faster Applications

Great Examples

Real-Time Means More Engagement

New Age of Computing

WebRTC Network This could not only change the way users interact but also how users interact with the internet.


Fork me on Github