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 4
Introduction to Socket.IO
This video explains how Socket.IO is a combination of the client-side JavaScript library. Node.js library is used to integrate bidirectional communication between a browser and the Node.js backend. Let us begin with: - Diving into the Socket.IO API - Restricting connections based on origin - Creating namespaces in Socket.IO - Referring to all connected Socket.io clients - Creating rooms in Socket.IO - Joining and leaving a room - Referring to all connected Socket.IO clients in a room - Broadcasting messages and custom events to namespaces and rooms - Registering a middleware in Socket.IO