WebRTC Data Channel

Dan Ristic - Developer Evangelist

WebRTC Data Channel

High Performance Peer to Peer Data

Dan Ristic - Developer Evangelist

PubNub

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

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

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.

Questions?

Fork me on Github