WebRTC Data Channel

Dan Ristic - Developer Evangelist

WebRTC Data Channel

High Performance Peer to Peer Data

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 is real-time for your users?

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

Browser A
Browser B

Capabilities

Demo

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?

Security

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?

Presence
Analytics
User IDs
Storage
Multicasting
Signaling

New Levels of Data

Going from
to

What Can We Do?

Faster Applications

Great Examples

New Age of Computing

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

Questions?

Fork me on Github