Home / Companies / Agora / Blog / Post Details
Content Deep Dive

How does WebRTC work?

Blog post from Agora

Post Details
Company
Date Published
Author
Dennis Ivy
Word Count
1,241
Language
English
Hacker News Points
-
Summary

WebRTC is a set of JavaScript APIs that enable real-time audio and video communication between two browsers without server intervention, reducing latency. It differs from WebSockets, which involves data exchange between the client and server. While WebRTC uses User Datagram Protocol (UDP) for fast data transmission, it lacks reliability checks and built-in signaling. To establish a connection, peers exchange Session Description Protocol (SDP) and ICE candidates. Trickle ICE is used to send ICE candidates as they are received, ensuring optimal data flow between the two peers.