Book Image

Beginning Modern JavaScript Development with Microservices, WebRTC, and React

By : Zsolt Nagy
Book Image

Beginning Modern JavaScript Development with Microservices, WebRTC, and React

By: Zsolt Nagy

Overview of this book

JavaScript has now become a universal development language. Whilst offering great benefits, the complexity of the entire ecosystem can be overwhelming. In this course, we will take a look at the libraries in JavaScript that aid in building applications that have a microservices-based architecture, have features like audio and video calling, real-time score updates, multi-faceted search options and more. We will not only look at building these applications but also explore a number of industry-standard best practices. With coverage of both server-side and front-end development, this course will provide attendees with the skills required to develop cutting-edge web applications that stand the test of time. The code bundle for this course is available at https://github.com/PacktPublishing/Beginning-Modern-JavaScript-Development-with-Microservices-WebRTC-and-React
Table of Contents (7 chapters)
Chapter 3
Communication
Content Locked
Section 3
WebRTC Applications Using PeerJS
This video explains how PeerJS is a client-side JavaScript library that provides an easy-to-use API to work with WebRTC. It only provides an API to exchange MediaStream (RTCPeerConnection) and arbitrary data between peers. It doesn't provide an API to work with MediaStream. It simplifies peer-to-peer data, audio, and video calls. To do this, we have to have the following: - WebSocket - Relationship between WebSocket and HTTP - WebSocket schemes - Interaction of WebSocket with proxy servers, load balancers, and firewalls - Same-origin policy for WebSocket