In this article, we will build a P2P images sharing app that will allow users to share images directly with each other using WebRTC and React.
WebRTC makes it possible to transfer files between two browsers, eliminating the need to upload a file to a server before sharing. Data is not stored in an intermediary server, which makes the transfer fast and secure. In this article, we will build a simple React app that will allow users to share images directly with each other using WebRTC.
A demo of what we will be building:
To start, we need a signalling server. This is used for establishing a connection between peers. The signaling server doesn’t deal with the media traffic, it is only responsible for enabling users to find each other in the network, establishing the connection, resetting and closing it down.
Lets start by creating a new project with an Express server and Socket.IO, because we want our signalling server to use a WebSocket connection.
What is PHP: - Who invented PHP, how it works, answers to all such questions about PHP, and much other information, you are going to