How to Share Screens with WebRTC and Socket.IO?

Hoang Dinh
JavaScript in Plain English
5 min readMay 29, 2023

--

We can find sharing screen in almost every meeting application. These applications can be native applications or just web applications. With screen-sharing permission, your web application can capture your browser tab or the whole screen. And you can share it with everyone.

In this story, I will introduce to you a simple screen-sharing web application that uses WebRTC to create peer-to-peer connections and uses NodeJs + Socket.IO to build a signaling server.

System Flow Overview

--

--