How WebRTC P2P sharing works
WebRTC (Web Real-Time Communication) is a modern browser standard that allows two web browsers to establish a direct, encrypted socket connection without an intermediary server relaying data.
When you create a room, a temporary signaling handshake exchanges connection metadata (SDP offer and ICE network candidates). Once the connection is established, all files are sliced into binary chunks and sent directly through the RTCDataChannel with DTLS/SCTP encryption.