WebRTC Supercharged With PubNub

[Responses sent across the WebRTC Data Channel will show up here]

What is Happening?

When the page starts up it creates two PubNub clients: A and B. When you press the connect button user B subscribes directly to user A. When you send a message, it first detects if there is a connection between the two users and if not, it creates a WebRTC Peer Connection. This allows user A to publish string based messages to user B using the WebRTC Data Channel technology. Cool!