Summary
In this chapter, you learned what is WebRTC, how it works, and the greatness of this new technology. We explored the main components of WebRTC and the main advantages in using it with PhoneGap/Crodova. Also, we developed a custom server to handle peer-to-peer connection in two different ways. Node.js with its modules handles both the ways pretty easily. As a result, we successfully created two versions of the WebRTC application.
In the next chapter, we will write an Instagram-like application to apply effects to our pictures. We will revisit the application structure with Sencha Touch, process images with HTML5 Canvas and the Pixastic library, and build a custom PhoneGap/Cordova plugin.