<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Zishan Ghaniwala</title>
    <description>The latest articles on DEV Community by Zishan Ghaniwala (@zishan_vsdk).</description>
    <link>https://dev.to/zishan_vsdk</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F4049583%2F048cd163-4e07-4392-a00e-8e700e2275c2.jpg</url>
      <title>DEV Community: Zishan Ghaniwala</title>
      <link>https://dev.to/zishan_vsdk</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/zishan_vsdk"/>
    <language>en</language>
    <item>
      <title>WebRTC vs WebSocket: Which to Use for Real-Time Features?</title>
      <dc:creator>Zishan Ghaniwala</dc:creator>
      <pubDate>Thu, 03 Dec 2026 12:30:00 +0000</pubDate>
      <link>https://dev.to/video-sdk/webrtc-vs-websocket-which-to-use-for-real-time-features-2h3m</link>
      <guid>https://dev.to/video-sdk/webrtc-vs-websocket-which-to-use-for-real-time-features-2h3m</guid>
      <description>&lt;p&gt;&lt;em&gt;Originally published on the &lt;a href="https://www.videosdk.live/blog/webrtc-vs-websocket" rel="noopener noreferrer"&gt;VideoSDK blog&lt;/a&gt;.&lt;/em&gt;&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;WebRTC vs WebSocket comes down to what you send. WebSocket keeps one TCP connection open between a client and your server, which suits chat, presence and live updates. WebRTC carries audio, video and data between peers, mostly over UDP.&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;A chat message can wait for a lost packet to be resent. A video frame can't: by the time it arrives again, the moment it showed has passed. That one difference drives most of the WebRTC vs WebSocket decision.&lt;/p&gt;

&lt;p&gt;This guide compares WebRTC vs WebSockets across ten dimensions, runs the same echo in each API, and shows how they work together in production, including the signalling work VideoSDK's React SDK does for you.&lt;/p&gt;

&lt;h2&gt;
  
  
  What is the difference between WebRTC and WebSocket?
&lt;/h2&gt;

&lt;p&gt;WebSocket is a client-to-server message pipe over TCP, while WebRTC is a peer-to-peer media and data stack that runs mainly over UDP.&lt;/p&gt;

&lt;h3&gt;
  
  
  What is WebSocket?
&lt;/h3&gt;

&lt;p&gt;WebSocket is defined as a protocol that turns an HTTP connection into a persistent, two-way channel between a client and a server. &lt;a href="https://www.videosdk.live/blog/what-is-a-websocket" rel="noopener noreferrer"&gt;WebSocket&lt;/a&gt; works by sending an HTTP Upgrade request, then exchanging text or binary frames over the same TCP connection until either side closes it.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://www.rfc-editor.org/rfc/rfc6455" rel="noopener noreferrer"&gt;RFC 6455&lt;/a&gt; (December 2011) describes it as an independent TCP-based protocol whose only link to HTTP is the handshake. It uses port 80 for &lt;code&gt;ws://&lt;/code&gt; and port 443 for &lt;code&gt;wss://&lt;/code&gt;, which runs over TLS. Every message passes through the server, which can store and fan it out.&lt;/p&gt;

&lt;h3&gt;
  
  
  What is WebRTC?
&lt;/h3&gt;

&lt;p&gt;WebRTC is defined as a set of browser APIs and IETF protocols for sending real-time audio, video and data directly between endpoints. &lt;a href="https://www.videosdk.live/blog/webrtc" rel="noopener noreferrer"&gt;WebRTC&lt;/a&gt; works by exchanging session descriptions through a signalling channel you provide, finding a network path with ICE, then sending media over &lt;a href="https://www.videosdk.live/blog/srtp" rel="noopener noreferrer"&gt;SRTP&lt;/a&gt; and data over DTLS.&lt;/p&gt;

&lt;p&gt;The &lt;a href="https://www.w3.org/TR/webrtc/" rel="noopener noreferrer"&gt;W3C WebRTC specification&lt;/a&gt; defines the browser API, including &lt;code&gt;RTCPeerConnection&lt;/code&gt; and &lt;code&gt;RTCDataChannel&lt;/code&gt;. It deliberately leaves signalling out, which is why WebRTC needs a second channel to get started.&lt;/p&gt;

&lt;p&gt;The practical split: WebSocket moves messages through a server you run, in order, with every byte delivered. WebRTC moves media and data between endpoints with loss-tolerant delivery, but needs a signalling channel to start. VideoSDK follows the same pattern: its SDKs keep a signalling connection on TCP port 443 and send media on separate UDP ports.&lt;/p&gt;

&lt;p&gt;In short, WebSocket is a messaging transport and WebRTC is a real-time media stack.&lt;/p&gt;

&lt;h2&gt;
  
  
  WebRTC vs WebSocket Comparison table
&lt;/h2&gt;

&lt;p&gt;WebRTC and WebSocket differ at every layer that matters for real-time features, from transport and topology to encryption and cost.&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Dimension&lt;/th&gt;
&lt;th&gt;WebRTC&lt;/th&gt;
&lt;th&gt;WebSocket&lt;/th&gt;
&lt;th&gt;Better for&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Transport&lt;/td&gt;
&lt;td&gt;UDP: SRTP for media, SCTP over DTLS for data. TCP only as a fallback&lt;/td&gt;
&lt;td&gt;TCP, with TLS on &lt;code&gt;wss://&lt;/code&gt;
&lt;/td&gt;
&lt;td&gt;WebRTC for media&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Topology&lt;/td&gt;
&lt;td&gt;Peer to peer, or a media server (SFU) for group calls&lt;/td&gt;
&lt;td&gt;Client to server&lt;/td&gt;
&lt;td&gt;WebSocket for one source, many subscribers&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Payload&lt;/td&gt;
&lt;td&gt;Audio and video tracks, plus text or binary data&lt;/td&gt;
&lt;td&gt;Text or binary messages&lt;/td&gt;
&lt;td&gt;WebRTC for camera and microphone&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;NAT traversal&lt;/td&gt;
&lt;td&gt;ICE, with STUN to find addresses and TURN to relay&lt;/td&gt;
&lt;td&gt;Not needed: outbound connection, like HTTPS&lt;/td&gt;
&lt;td&gt;WebSocket&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Encryption&lt;/td&gt;
&lt;td&gt;Mandatory: DTLS-SRTP for media, DTLS for data&lt;/td&gt;
&lt;td&gt;Optional: TLS on &lt;code&gt;wss://&lt;/code&gt;
&lt;/td&gt;
&lt;td&gt;WebRTC&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Ordering and reliability&lt;/td&gt;
&lt;td&gt;Per data channel: ordered or not, full or partial reliability&lt;/td&gt;
&lt;td&gt;Always ordered and reliable&lt;/td&gt;
&lt;td&gt;WebRTC for data that goes stale&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Head-of-line blocking&lt;/td&gt;
&lt;td&gt;Avoidable with unordered channels&lt;/td&gt;
&lt;td&gt;Yes: one lost TCP segment holds back later messages&lt;/td&gt;
&lt;td&gt;WebRTC on lossy networks&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Browser support&lt;/td&gt;
&lt;td&gt;Data channels Baseline since January 2020&lt;/td&gt;
&lt;td&gt;Baseline since July 2015&lt;/td&gt;
&lt;td&gt;A tie in current browsers&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Server cost&lt;/td&gt;
&lt;td&gt;Signalling and STUN are light; TURN and media servers carry bandwidth&lt;/td&gt;
&lt;td&gt;Your servers carry every message and one open connection per client&lt;/td&gt;
&lt;td&gt;WebSocket for light message traffic&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Typical use&lt;/td&gt;
&lt;td&gt;Calls, screen share, interactive streaming, peer data&lt;/td&gt;
&lt;td&gt;Chat, presence, notifications, live scores, signalling&lt;/td&gt;
&lt;td&gt;Match the column to your payload&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;Payload and ordering decide most projects. A camera or microphone means WebRTC; messages that must arrive in order and be stored mean WebSocket.&lt;/p&gt;

&lt;p&gt;The encryption row comes from &lt;a href="https://www.rfc-editor.org/rfc/rfc8827" rel="noopener noreferrer"&gt;RFC 8827&lt;/a&gt; (see our &lt;a href="https://www.videosdk.live/blog/srtp" rel="noopener noreferrer"&gt;SRTP guide&lt;/a&gt;); browser dates are MDN's Baseline data for &lt;a href="https://developer.mozilla.org/en-US/docs/Web/API/WebSocket" rel="noopener noreferrer"&gt;WebSocket&lt;/a&gt; and &lt;a href="https://developer.mozilla.org/en-US/docs/Web/API/RTCPeerConnection/createDataChannel" rel="noopener noreferrer"&gt;createDataChannel&lt;/a&gt;, checked September 2026.&lt;/p&gt;

&lt;h2&gt;
  
  
  WebRTC vs WebSocket performance: Which is faster?
&lt;/h2&gt;

&lt;p&gt;Neither protocol is faster on a clean network; the gap opens when packets get lost, and only with WebRTC's unordered delivery.&lt;/p&gt;

&lt;h3&gt;
  
  
  Path length
&lt;/h3&gt;

&lt;p&gt;A WebSocket message always makes two trips: sender to server, then server to receiver. A &lt;a href="https://www.videosdk.live/developer-hub/webrtc/webrtc-data-channel" rel="noopener noreferrer"&gt;WebRTC data channel&lt;/a&gt; takes the direct path between peers when ICE finds one, or goes through a TURN relay when it can't. Group calls usually route through a media server to save upload bandwidth, as our guide to &lt;a href="https://www.videosdk.live/blog/sfu-vs-mcu-vs-mesh-webrtc" rel="noopener noreferrer"&gt;SFU, MCU and mesh topologies&lt;/a&gt; explains.&lt;/p&gt;

&lt;h3&gt;
  
  
  Packet loss and head-of-line blocking
&lt;/h3&gt;

&lt;p&gt;TCP delivers bytes in order, so when one segment is lost, everything behind it waits for the retransmission. &lt;a href="https://www.rfc-editor.org/rfc/rfc8835" rel="noopener noreferrer"&gt;RFC 8835&lt;/a&gt; gives head-of-line blocking as one reason TCP between a TURN server and a peer can perform worse than UDP.&lt;/p&gt;

&lt;p&gt;WebRTC media uses RTP over UDP, so a late packet is concealed or skipped instead of stalling the stream. For data channels, &lt;a href="https://www.rfc-editor.org/rfc/rfc8831" rel="noopener noreferrer"&gt;RFC 8831&lt;/a&gt; says zero retransmissions plus unordered delivery gives "a UDP-like service where each user message is sent exactly once".&lt;/p&gt;

&lt;p&gt;One thing that bites people here: data channels are ordered and reliable by default, so they behave much like TCP under loss. You only get the advantage by passing &lt;code&gt;ordered: false&lt;/code&gt; plus &lt;code&gt;maxRetransmits&lt;/code&gt; or &lt;code&gt;maxPacketLifeTime&lt;/code&gt;.&lt;/p&gt;

&lt;h3&gt;
  
  
  Message size and backpressure
&lt;/h3&gt;

&lt;p&gt;RFC 8831 says a sender without message interleaving should keep messages to 16 KB, because one large message can monopolise the connection. &lt;a href="https://developer.mozilla.org/en-US/docs/Web/API/WebRTC_API/Using_data_channels" rel="noopener noreferrer"&gt;MDN notes&lt;/a&gt; that most browsers accept at least 256 KB, but large messages still cause head-of-line blocking.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://developer.mozilla.org/en-US/docs/Web/API/WebSockets_API" rel="noopener noreferrer"&gt;MDN also states&lt;/a&gt; that the &lt;code&gt;WebSocket&lt;/code&gt; interface doesn't support backpressure, so messages arriving faster than your code handles them pile up in memory. Data channels offer &lt;code&gt;bufferedAmountLowThreshold&lt;/code&gt; and a &lt;code&gt;bufferedamountlow&lt;/code&gt; event for pacing sends.&lt;/p&gt;

&lt;p&gt;Published millisecond figures rarely state a method, so time messages yourself, on a lossy connection too.&lt;/p&gt;

&lt;h2&gt;
  
  
  WebSocket vs RTCDataChannel: the same echo in code
&lt;/h2&gt;

&lt;p&gt;The same echo in each API shows the core difference: WebSocket needs a server, and WebRTC needs a signalling step.&lt;/p&gt;

&lt;p&gt;Both examples were run in September 2026: the WebSocket pair on Node.js 22 with &lt;code&gt;ws&lt;/code&gt; 8.21.3, and the data channel in Chrome 152.&lt;/p&gt;

&lt;h3&gt;
  
  
  WebSocket echo: Node.js server and browser client
&lt;/h3&gt;

&lt;p&gt;The server is adapted from the Simple server example, in this &lt;a href="https://github.com/websockets/ws" rel="noopener noreferrer"&gt;github example&lt;/a&gt;. Install it with &lt;code&gt;npm install ws&lt;/code&gt; and run &lt;code&gt;node server.mjs&lt;/code&gt;.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight javascript"&gt;&lt;code&gt;&lt;span class="c1"&gt;// server.mjs&lt;/span&gt;
&lt;span class="k"&gt;import&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="nc"&gt;WebSocketServer&lt;/span&gt; &lt;span class="p"&gt;}&lt;/span&gt; &lt;span class="k"&gt;from&lt;/span&gt; &lt;span class="s1"&gt;'ws'&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;

&lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="n"&gt;wss&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="k"&gt;new&lt;/span&gt; &lt;span class="nc"&gt;WebSocketServer&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="n"&gt;port&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="mi"&gt;8080&lt;/span&gt; &lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;

&lt;span class="n"&gt;wss&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;on&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s1"&gt;'connection'&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="kd"&gt;function&lt;/span&gt; &lt;span class="nf"&gt;connection&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;ws&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
  &lt;span class="n"&gt;ws&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;on&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s1"&gt;'error'&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="nb"&gt;console&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;error&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;

  &lt;span class="n"&gt;ws&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;on&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s1"&gt;'message'&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="kd"&gt;function&lt;/span&gt; &lt;span class="nf"&gt;message&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;data&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
    &lt;span class="n"&gt;ws&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;send&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="sb"&gt;`echo: ${data}`&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
  &lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;The client uses the browser's built-in &lt;code&gt;WebSocket&lt;/code&gt; object.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight javascript"&gt;&lt;code&gt;&lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="n"&gt;socket&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="k"&gt;new&lt;/span&gt; &lt;span class="nc"&gt;WebSocket&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s1"&gt;'ws://localhost:8080'&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;

&lt;span class="n"&gt;socket&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;addEventListener&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s1"&gt;'open'&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="o"&gt;=&amp;gt;&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
  &lt;span class="n"&gt;socket&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;send&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s1"&gt;'hello'&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;

&lt;span class="n"&gt;socket&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;addEventListener&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s1"&gt;'message'&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;event&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="o"&gt;=&amp;gt;&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
  &lt;span class="nb"&gt;console&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;log&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;event&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;data&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt; &lt;span class="c1"&gt;// "echo: hello"&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;The server sees every message, which suits chat history and moderation.&lt;/p&gt;

&lt;h3&gt;
  
  
  RTCDataChannel echo: two peers in one browser tab
&lt;/h3&gt;

&lt;p&gt;Paste this into a browser console. Both peers live in one tab, so no server is needed.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight javascript"&gt;&lt;code&gt;&lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="n"&gt;alice&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="k"&gt;new&lt;/span&gt; &lt;span class="nc"&gt;RTCPeerConnection&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="n"&gt;bob&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="k"&gt;new&lt;/span&gt; &lt;span class="nc"&gt;RTCPeerConnection&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="n"&gt;alice&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;onicecandidate&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;e&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="o"&gt;=&amp;gt;&lt;/span&gt; &lt;span class="n"&gt;e&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;candidate&lt;/span&gt; &lt;span class="o"&gt;&amp;amp;&amp;amp;&lt;/span&gt; &lt;span class="n"&gt;bob&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;addIceCandidate&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;e&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;candidate&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="n"&gt;bob&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;onicecandidate&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;e&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="o"&gt;=&amp;gt;&lt;/span&gt; &lt;span class="n"&gt;e&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;candidate&lt;/span&gt; &lt;span class="o"&gt;&amp;amp;&amp;amp;&lt;/span&gt; &lt;span class="n"&gt;alice&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;addIceCandidate&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;e&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;candidate&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;

&lt;span class="n"&gt;bob&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;ondatachannel&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="n"&gt;channel&lt;/span&gt; &lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="o"&gt;=&amp;gt;&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
  &lt;span class="n"&gt;channel&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;onmessage&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;e&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="o"&gt;=&amp;gt;&lt;/span&gt; &lt;span class="n"&gt;channel&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;send&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="sb"&gt;`echo: ${e.data}`&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;

&lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="n"&gt;dc&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;alice&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;createDataChannel&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s1"&gt;'chat'&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="n"&gt;ordered&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="kc"&gt;false&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;maxRetransmits&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="mi"&gt;0&lt;/span&gt; &lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="n"&gt;dc&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;onopen&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="o"&gt;=&amp;gt;&lt;/span&gt; &lt;span class="n"&gt;dc&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;send&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s1"&gt;'hello'&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="n"&gt;dc&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;onmessage&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;e&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="o"&gt;=&amp;gt;&lt;/span&gt; &lt;span class="nb"&gt;console&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;log&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;e&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;data&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt; &lt;span class="c1"&gt;// "echo: hello"&lt;/span&gt;

&lt;span class="c1"&gt;// Signalling: in a real app, this offer and answer travel over a WebSocket.&lt;/span&gt;
&lt;span class="k"&gt;await&lt;/span&gt; &lt;span class="n"&gt;alice&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;setLocalDescription&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="k"&gt;await&lt;/span&gt; &lt;span class="n"&gt;alice&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;createOffer&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="k"&gt;await&lt;/span&gt; &lt;span class="n"&gt;bob&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;setRemoteDescription&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;alice&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;localDescription&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="k"&gt;await&lt;/span&gt; &lt;span class="n"&gt;bob&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;setLocalDescription&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="k"&gt;await&lt;/span&gt; &lt;span class="n"&gt;bob&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;createAnswer&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="k"&gt;await&lt;/span&gt; &lt;span class="n"&gt;alice&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;setRemoteDescription&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;bob&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;localDescription&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;The &lt;code&gt;{ ordered: false, maxRetransmits: 0 }&lt;/code&gt; options make this channel UDP-like. The last four lines are what a real app can't skip: on separate devices, the offer, answer and ICE candidates travel through a signalling server, usually a WebSocket.&lt;/p&gt;

&lt;p&gt;So WebRTC still needs a server in production, just not for the data itself.&lt;/p&gt;

&lt;h2&gt;
  
  
  When to use WebSockets?
&lt;/h2&gt;

&lt;p&gt;Use WebSockets when a server is the source of truth and every message must reach every client, in order.&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;Chat with history.&lt;/strong&gt; Messages must arrive in order, be stored, and reach people who join later. The server persists each one and fans it out to the room.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Presence and typing indicators.&lt;/strong&gt; Small, frequent state changes go to many clients, and only the server knows who is online.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Live scores, prices and dashboards.&lt;/strong&gt; One source pushes updates to thousands of subscribers, so peer-to-peer adds nothing.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;It is not for live audio or video. TCP turns packet loss into stalls, and you would have to rebuild jitter buffering, codecs and echo cancellation yourself.&lt;/p&gt;

&lt;p&gt;If the data starts on your server or has to be saved, a WebSocket is the shorter path to a working feature.&lt;/p&gt;

&lt;h2&gt;
  
  
  When to use WebRTC?
&lt;/h2&gt;

&lt;p&gt;Use WebRTC when you are moving live audio or video, or data that is worthless once it arrives late.&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;Video and voice calls.&lt;/strong&gt; A telehealth consultation or tutoring session needs capture, codecs, jitter buffers, echo cancellation and encryption. WebRTC ships all of them in the browser.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Screen sharing and &lt;a href="https://www.videosdk.live/developer-hub/ils/interactive-live-streaming-guide" rel="noopener noreferrer"&gt;interactive live streaming&lt;/a&gt;.&lt;/strong&gt; Viewers who can be pulled on stage need the same real-time path as the host, which is what &lt;a href="https://www.videosdk.live/interactive-live-streaming" rel="noopener noreferrer"&gt;interactive live streaming&lt;/a&gt; is built on.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Low-latency peer data.&lt;/strong&gt; Multiplayer game state, whiteboard cursors and remote-control input go stale fast. An unordered data channel delivers the newest update without waiting for an old one.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;WebRTC is not the tool for notifications or chat history: a data channel keeps nothing after it closes.&lt;/p&gt;

&lt;p&gt;If losing a packet should mean skipping it rather than waiting for it, WebRTC is the right transport.&lt;/p&gt;

&lt;h2&gt;
  
  
  Using both together: how WebSocket signalling starts a WebRTC call
&lt;/h2&gt;

&lt;p&gt;In most production apps, WebSocket and WebRTC aren't alternatives: the WebSocket carries the setup messages, and WebRTC carries the call.&lt;/p&gt;

&lt;p&gt;That also answers the common "WebRTC to WebSocket" question. You don't convert one into the other; they run side by side:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;Connect.&lt;/strong&gt; Both clients open a WebSocket to a signalling server.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Offer and answer.&lt;/strong&gt; The caller sends an SDP offer over the WebSocket, and the callee replies with an SDP answer.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Exchange candidates.&lt;/strong&gt; Each side sends ICE candidates over the WebSocket as it discovers them.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Start media.&lt;/strong&gt; ICE picks a direct path, or a TURN relay if none works, and WebRTC sends media over UDP with DTLS-SRTP.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Stay connected.&lt;/strong&gt; The WebSocket stays open for renegotiation, ICE restarts, mute state and leave events.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fj9tmq2mboehhd2urmsf1.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fj9tmq2mboehhd2urmsf1.png" alt="How WebSocket signalling starts a WebRTC call" width="800" height="407"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Traffic can also flow the other way: a server-side participant can forward WebRTC audio to a WebSocket-only service, such as a streaming speech-to-text API.&lt;/p&gt;

&lt;p&gt;With VideoSDK, you don't build steps 1 to 3. The SDK opens its own connection to VideoSDK's signalling servers, which the &lt;a href="https://docs.videosdk.live/react/guide/video-and-audio-calling-api-sdk/security/firewall-setup" rel="noopener noreferrer"&gt;firewall guide&lt;/a&gt; lists on TCP port 443. Media flows to VideoSDK's media servers on UDP ports 40000 to 60000, with TCP fallback on the same range, and TURN runs on port 3478 or TCP 443. For the full message flow, read &lt;a href="https://www.videosdk.live/blog/what-is-webrtc-signaling" rel="noopener noreferrer"&gt;how WebRTC signalling works&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;This WebRTC WebSocket split is the standard architecture, and a managed SDK takes the signalling half off your hands.&lt;/p&gt;

&lt;h2&gt;
  
  
  Where WebTransport and WebSocket over HTTP/3 fit
&lt;/h2&gt;

&lt;p&gt;Two newer options now sit next to the classic pair: WebSocket over HTTP/2 or HTTP/3, and the WebTransport API.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://www.rfc-editor.org/rfc/rfc8441" rel="noopener noreferrer"&gt;RFC 8441&lt;/a&gt; (September 2018) and &lt;a href="https://www.rfc-editor.org/rfc/rfc9220" rel="noopener noreferrer"&gt;RFC 9220&lt;/a&gt; (June 2022) let a WebSocket run as a stream inside an HTTP/2 or HTTP/3 connection. Your application code doesn't change, and each socket still delivers its messages in order.&lt;/p&gt;

&lt;p&gt;WebTransport is the bigger shift. &lt;a href="https://developer.mozilla.org/en-US/docs/Web/API/WebTransport_API" rel="noopener noreferrer"&gt;MDN describes&lt;/a&gt; unreliable datagrams, unidirectional streams, out-of-order delivery and built-in backpressure, and lists it as Baseline 2026, working in the latest major browsers since March 2026. It is still client to server, and carries bytes, not media: no codecs or jitter buffers.&lt;/p&gt;

&lt;p&gt;For server-routed data that should behave like UDP, WebTransport is now a real candidate. For calls, WebRTC remains the browser's media stack. Our &lt;a href="https://www.videosdk.live/blog/websocket-vs-webtransport" rel="noopener noreferrer"&gt;WebSocket vs WebTransport comparison&lt;/a&gt; covers that choice.&lt;/p&gt;

&lt;h2&gt;
  
  
  How VideoSDK handles WebRTC and WebSocket for you
&lt;/h2&gt;

&lt;p&gt;VideoSDK runs the signalling and media servers, so your app calls SDK methods instead of managing sockets and peer connections.&lt;/p&gt;

&lt;p&gt;Media travels over WebRTC to VideoSDK's media servers. For messages, the React SDK offers two tools that mirror this article's split:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;a href="https://docs.videosdk.live/react/guide/video-and-audio-calling-api-sdk/collaboration-in-meeting/pubsub" rel="noopener noreferrer"&gt;&lt;strong&gt;PubSub&lt;/strong&gt;&lt;/a&gt; is topic-based messaging through &lt;code&gt;usePubSub&lt;/code&gt;. With &lt;code&gt;persist: true&lt;/code&gt;, messages are kept for the session, delivered to late joiners, and downloadable as CSV from the session dashboard. That's the WebSocket-style job: chat, polls and raised hands.&lt;/li&gt;
&lt;li&gt;
&lt;a href="https://docs.videosdk.live/react/guide/video-and-audio-calling-api-sdk/collaboration-in-meeting/datastream" rel="noopener noreferrer"&gt;&lt;strong&gt;DataStream&lt;/strong&gt;&lt;/a&gt; sends text or binary through &lt;code&gt;send()&lt;/code&gt; and &lt;code&gt;onData&lt;/code&gt; in &lt;code&gt;useMeeting&lt;/code&gt;, with no topics or persistence. It has &lt;code&gt;reliable&lt;/code&gt; and &lt;code&gt;unreliable&lt;/code&gt; modes and a 15 KiB limit per message, so larger payloads need chunking. That's the data channel-style job: cursors, game state and quick signals.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;To try both, follow the &lt;a href="https://docs.videosdk.live/react/guide/video-and-audio-calling-api-sdk/quick-start" rel="noopener noreferrer"&gt;React quickstart&lt;/a&gt;; new accounts get &lt;a href="https://www.videosdk.live/pricing" rel="noopener noreferrer"&gt;$20 free credit&lt;/a&gt;. As of September 2026, the React SDK is at version 1.1.1. For more on the data side, see our &lt;a href="https://www.videosdk.live/developer-hub/webrtc/websocket-vs-webrtc-datachannel" rel="noopener noreferrer"&gt;WebSocket vs WebRTC DataChannel guide&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;With VideoSDK, PubSub does the WebSocket jobs and DataStream does the data channel jobs, over a connection you don't manage.&lt;/p&gt;

&lt;h2&gt;
  
  
  Definitions glossary
&lt;/h2&gt;

&lt;blockquote&gt;
&lt;p&gt;&lt;strong&gt;Signalling:&lt;/strong&gt; The exchange of session descriptions and network candidates that two WebRTC endpoints need before they connect. VideoSDK's SDKs handle signalling through VideoSDK's servers on TCP port 443.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;ICE, STUN and TURN:&lt;/strong&gt; ICE finds a network path; STUN tells a client its public address, and TURN relays traffic when no direct path exists. VideoSDK runs TURN on port 3478, with TCP 443 as fallback.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Head-of-line blocking:&lt;/strong&gt; A stall where one lost or oversized message holds back everything queued behind it. VideoSDK's DataStream has an &lt;code&gt;unreliable&lt;/code&gt; mode that drops lost messages instead of waiting for them.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;RTCDataChannel:&lt;/strong&gt; The WebRTC API for sending text or binary data between peers over SCTP and DTLS, with configurable ordering and reliability. In a VideoSDK meeting, DataStream plays this role.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;PubSub:&lt;/strong&gt; A pattern where senders post to a named topic and every subscriber receives the message. VideoSDK's &lt;code&gt;usePubSub&lt;/code&gt; hook implements it, with optional persistence for the session.&lt;/p&gt;
&lt;/blockquote&gt;

&lt;h2&gt;
  
  
  Key takeaways
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;WebSocket is a reliable, ordered client-to-server pipe over TCP; WebRTC is a peer-to-peer media and data stack that runs mainly over UDP.&lt;/li&gt;
&lt;li&gt;For data, WebRTC only beats WebSocket under packet loss when channels use &lt;code&gt;ordered: false&lt;/code&gt; and a retransmission limit.&lt;/li&gt;
&lt;li&gt;Production video apps use both: WebSocket carries the signalling and WebRTC carries the media.&lt;/li&gt;
&lt;li&gt;WebRTC encryption is mandatory, while WebSocket traffic is encrypted only on &lt;code&gt;wss://&lt;/code&gt;.&lt;/li&gt;
&lt;li&gt;VideoSDK runs the signalling and media servers and offers PubSub and DataStream for in-meeting data.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Conclusion
&lt;/h2&gt;

&lt;p&gt;The WebRTC vs WebSocket choice is rarely either-or. Use WebSocket for messages that must be stored and delivered in order, WebRTC for media and data that goes stale, and let the WebSocket carry the WebRTC handshake. If you'd rather not run signalling servers, TURN relays and media servers yourself, the &lt;a href="https://docs.videosdk.live/react/guide/video-and-audio-calling-api-sdk/quick-start" rel="noopener noreferrer"&gt;VideoSDK React quickstart&lt;/a&gt; gets a call running, and you can &lt;a href="https://www.videosdk.live/signup?thrive_ref_id=86205b2d20c21db8cd179d056b3a7578722cba1a43ced0ce5d638762581b136d&amp;amp;widget_code=631013ca11c0f57354da9688879ed3d3c78d07bf5dfb8c674e4da233b9d61ff4&amp;amp;utm_campaign=explainer&amp;amp;utm_medium=affiliate&amp;amp;utm_source=none" rel="noopener noreferrer"&gt;sign up&lt;/a&gt; with $20 free credit.&lt;/p&gt;

&lt;p&gt;What are you building with VideoSDK? Drop a comment and tell us which transport your real-time feature ended up on.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Adding real-time video to your app?&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;VideoSDK gives you the video layer: &lt;a href="https://docs.videosdk.live/react/guide/video-and-audio-calling-api-sdk/call-quality/simulcast" rel="noopener noreferrer"&gt;simulcast for mixed network conditions&lt;/a&gt;, &lt;a href="https://docs.videosdk.live/react/guide/video-and-audio-calling-api-sdk/call-quality/monitoring-call-quality" rel="noopener noreferrer"&gt;call quality stats for every participant&lt;/a&gt;, and &lt;a href="https://docs.videosdk.live/react/guide/video-and-audio-calling-api-sdk/plugins/noise-suppresion" rel="noopener noreferrer"&gt;AI noise suppression&lt;/a&gt;. A new account comes with a $20 credit.&lt;/p&gt;

&lt;h2&gt;
  
  
  Frequently asked questions
&lt;/h2&gt;

&lt;h3&gt;
  
  
  What is the main difference between WebRTC and WebSocket?
&lt;/h3&gt;

&lt;p&gt;The main difference is the communication model. WebRTC sends audio, video and data between endpoints, mainly over UDP, after a separate signalling step. WebSocket keeps one persistent TCP connection between a client and a server.&lt;/p&gt;

&lt;h3&gt;
  
  
  Can WebRTC and WebSocket be used together?
&lt;/h3&gt;

&lt;p&gt;Yes, and in production they usually are. WebSocket carries the signalling: the SDP offer, answer and ICE candidates. Once WebRTC is connected, the WebSocket still carries control messages such as mute state and leave events.&lt;/p&gt;

&lt;h3&gt;
  
  
  Which is better, WebRTC or WebSocket?
&lt;/h3&gt;

&lt;p&gt;Neither is better in general; it depends on what you send. WebRTC is better for live audio, video and data that loses value when late. WebSocket is better for chat, notifications, live feeds and signalling, where every message must arrive in order.&lt;/p&gt;

&lt;h3&gt;
  
  
  Does WebRTC require a server?
&lt;/h3&gt;

&lt;p&gt;Yes, WebRTC always needs a signalling channel, usually a server, although a two-person call can then send media directly. Peers behind strict NATs need a TURN relay, and group calls usually add a media server to save upload bandwidth.&lt;/p&gt;

&lt;h3&gt;
  
  
  What is the latency difference between WebRTC and WebSocket?
&lt;/h3&gt;

&lt;p&gt;The latency difference comes from the path and from packet loss. A WebSocket message always goes through a server, while a WebRTC data channel can go directly between peers. Under loss, TCP holds back later WebSocket messages, while WebRTC media and unordered data channels keep going.&lt;/p&gt;

&lt;h3&gt;
  
  
  Is WebSocket secure for real-time applications?
&lt;/h3&gt;

&lt;p&gt;Yes, WebSocket is secure on &lt;code&gt;wss://&lt;/code&gt;, which wraps the connection in TLS, like HTTPS. Plain &lt;code&gt;ws://&lt;/code&gt; is unencrypted and shouldn't carry user data. WebRTC goes further and requires DTLS-SRTP for media and DTLS for data channels.&lt;/p&gt;

&lt;h3&gt;
  
  
  How does VideoSDK use WebRTC and WebSocket?
&lt;/h3&gt;

&lt;p&gt;VideoSDK uses WebRTC to carry media to its media servers, and its SDKs keep a separate signalling connection on TCP port 443, so you never run a signalling server. Inside a meeting, PubSub handles persistent messages and DataStream handles reliable or unreliable data.&lt;/p&gt;

</description>
      <category>webrtc</category>
      <category>websocket</category>
      <category>javascript</category>
      <category>webdev</category>
    </item>
    <item>
      <title>Video Bitrate Explained: Quality, Bandwidth, and Video Calls</title>
      <dc:creator>Zishan Ghaniwala</dc:creator>
      <pubDate>Fri, 13 Nov 2026 18:00:00 +0000</pubDate>
      <link>https://dev.to/video-sdk/video-bitrate-explained-quality-bandwidth-and-video-calls-1cg3</link>
      <guid>https://dev.to/video-sdk/video-bitrate-explained-quality-bandwidth-and-video-calls-1cg3</guid>
      <description>&lt;p&gt;A 720p video and a 540p video of the same face looked equally good, but the 540p version used less than half the data. The number that helps explain why is bitrate.&lt;/p&gt;

&lt;h2&gt;
  
  
  What is bitrate?
&lt;/h2&gt;

&lt;p&gt;Bitrate is the number of bits of data a stream uses each second. You'll usually see it in kbps or Mbps: 1,500 kbps is 1.5 Mbps, or 1.5 million bits per second.&lt;/p&gt;

&lt;p&gt;Bandwidth is different. It describes how much data a connection can carry per second. For video to play smoothly, its bitrate needs to stay below the available bandwidth.&lt;/p&gt;

&lt;h2&gt;
  
  
  Bitrate vs resolution and frame rate
&lt;/h2&gt;

&lt;p&gt;Resolution tells you how many pixels are in each frame. Frame rate tells you how many frames appear each second. A 720p frame has 1280 by 720 pixels, and a video at 30 fps shows 30 frames each second.&lt;/p&gt;

&lt;p&gt;Think of bitrate as a per-second data budget shared by those pixels and frames. At a fixed bitrate, adding more pixels or frames leaves fewer bits for each. When there are too few bits, the picture can look blocky.&lt;/p&gt;

&lt;p&gt;That's why resolution alone doesn't tell you how good a video will look. In the comparison above, the 720p video used 1,442 kbps, while the 540p video used 642 kbps and appeared to be the same quality.&lt;/p&gt;

&lt;h2&gt;
  
  
  Codecs change the bitrate you need
&lt;/h2&gt;

&lt;p&gt;A codec compresses video, storing each frame largely as changes from the one before it. The codec affects how much bitrate you need for a given picture.&lt;/p&gt;

&lt;p&gt;VP8 and H264 are light on CPU. VP9 and AV1 offer better compression and can deliver sharper video over the same connection, but need more CPU.&lt;/p&gt;

&lt;p&gt;Audio gives you a sense of scale. VideoSDK's standard speech preset uses about 24 kbps, while its balanced 720p video preset uses about 1,500 kbps.&lt;/p&gt;

&lt;h2&gt;
  
  
  Adaptive bitrate streaming
&lt;/h2&gt;

&lt;p&gt;A streaming player can adjust when the available connection changes. The video is encoded ahead of time into versions called renditions, each with a set bitrate and resolution.&lt;/p&gt;

&lt;p&gt;The player downloads short segments and keeps a buffer ahead. It can switch renditions as the connection changes. HLS and DASH are common formats for this kind of adaptive bitrate streaming.&lt;/p&gt;

&lt;h2&gt;
  
  
  Adaptive bitrate in video calls
&lt;/h2&gt;

&lt;p&gt;A video call can't wait on a buffer, so it needs to adapt live. With simulcast, a sender publishes the same camera video in several layers at once, such as 720p, 360p and 180p.&lt;/p&gt;

&lt;p&gt;An SFU, or selective forwarding unit, forwards a layer to each viewer without mixing the video. A viewer with a weak connection can receive a lighter layer without pulling everyone else down. Smaller video tiles can receive smaller layers.&lt;/p&gt;

&lt;p&gt;Streaming switches between files made earlier. A call switches live layers for each viewer.&lt;/p&gt;

&lt;h2&gt;
  
  
  How VideoSDK handles it
&lt;/h2&gt;

&lt;p&gt;VideoSDK's default camera track uses 720p at 30 fps and 1,500 kbps in BALANCED mode. Simulcast is on by default with three layers, and VideoSDK picks a layer for each viewer based on their connection and tile size. The app can also hear when the received layer changes through &lt;code&gt;onVideoQualityChanged&lt;/code&gt;.&lt;/p&gt;

&lt;p&gt;If a device can't encode the chosen codec or another participant can't decode it, VideoSDK switches that video to VP8.&lt;/p&gt;

&lt;h2&gt;
  
  
  Go deeper
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;a href="https://www.videosdk.live/blog/what-is-bitrate?utm_source=devto&amp;amp;utm_medium=social&amp;amp;utm_campaign=bitrate-explained-2026&amp;amp;utm_content=film" rel="noopener noreferrer"&gt;Read the full bitrate guide&lt;/a&gt; for React code to set bitrate, simulcast layers and codec.&lt;/li&gt;
&lt;li&gt;
&lt;a href="https://docs.videosdk.live/react/guide/video-and-audio-calling-api-sdk/call-quality/simulcast?utm_source=devto&amp;amp;utm_medium=social&amp;amp;utm_campaign=bitrate-explained-2026&amp;amp;utm_content=film" rel="noopener noreferrer"&gt;Explore the simulcast docs&lt;/a&gt; to learn how layers work.&lt;/li&gt;
&lt;li&gt;
&lt;a href="https://docs.videosdk.live/react/guide/video-and-audio-calling-api-sdk/call-quality/video-codecs?utm_source=devto&amp;amp;utm_medium=social&amp;amp;utm_campaign=bitrate-explained-2026&amp;amp;utm_content=film" rel="noopener noreferrer"&gt;Compare video codecs&lt;/a&gt; and their CPU and compression tradeoffs.&lt;/li&gt;
&lt;li&gt;
&lt;a href="https://docs.videosdk.live/react/guide/video-and-audio-calling-api-sdk/quick-start?utm_source=devto&amp;amp;utm_medium=social&amp;amp;utm_campaign=bitrate-explained-2026&amp;amp;utm_content=film" rel="noopener noreferrer"&gt;Try the React quick start&lt;/a&gt; to get started with VideoSDK.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;a href="https://app.videosdk.live/signup?utm_source=devto&amp;amp;utm_medium=social&amp;amp;utm_campaign=bitrate-explained-2026&amp;amp;utm_content=film" rel="noopener noreferrer"&gt;Sign up for $20 free credit&lt;/a&gt;. No credit card required.&lt;/p&gt;

</description>
      <category>webrtc</category>
      <category>video</category>
      <category>webdev</category>
      <category>beginners</category>
    </item>
    <item>
      <title>How to build a video chat app with Node.js (your server owns the room)</title>
      <dc:creator>Zishan Ghaniwala</dc:creator>
      <pubDate>Wed, 04 Nov 2026 11:07:42 +0000</pubDate>
      <link>https://dev.to/video-sdk/how-to-build-a-video-chat-app-with-nodejs-your-server-owns-the-room-h4c</link>
      <guid>https://dev.to/video-sdk/how-to-build-a-video-chat-app-with-nodejs-your-server-owns-the-room-h4c</guid>
      <description>&lt;p&gt;Build a video chat app with Node.js where your server can end the call for every participant without joining it. Express controls who gets access, and VideoSDK's &lt;a href="https://www.videosdk.live/video-calling-api/nodejs-sdk?utm_source=devto-build-video-chat-app-nodejs&amp;amp;thrive_ref_id=646771370b6d2be844bc2db679d359c64ca854c600d3a7e68192007f69d10869" rel="noopener noreferrer"&gt;Node.js video calling API&lt;/a&gt; carries the live media. Here, "chat" means video and audio, not text chat.&lt;/p&gt;

&lt;p&gt;The &lt;a href="https://github.com/videosdk-community/videosdk-nodejs-video-calling" rel="noopener noreferrer"&gt;full source for this Node.js video chat app is on GitHub&lt;/a&gt;. It runs locally with npm and has no build step.&lt;/p&gt;

&lt;p&gt;  &lt;iframe src="https://www.youtube.com/embed/aUDvZ3j399w" width="710" height="399"&gt;
  &lt;/iframe&gt;
&lt;/p&gt;

&lt;h2&gt;
  
  
  Build a video chat app with Node.js and Express
&lt;/h2&gt;

&lt;p&gt;You'll build a group video call on one page. Whoever starts it becomes the host and gets an invite link. Anyone with that link joins as a guest. Every participant gets camera and mic controls and a &lt;strong&gt;Leave&lt;/strong&gt; button.&lt;/p&gt;

&lt;p&gt;Only the host sees &lt;strong&gt;End for everyone&lt;/strong&gt;. That button asks the server to disconnect every browser and disable the room. The old link then stops admitting participants.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fwxlkb4xl6eo66rcp3djx.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fwxlkb4xl6eo66rcp3djx.png" alt="Node.js video call app with Express: the Start a video call form" width="800" height="450"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;The server is one 73-line file with three API routes:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;code&gt;POST /api/rooms&lt;/code&gt; creates a room and returns a host token.&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;POST /api/rooms/:roomId/token&lt;/code&gt; returns a guest token, 404 for an unknown room, or 410 for an ended room.&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;POST /api/rooms/:roomId/end&lt;/code&gt; ends the call for everyone after checking the host token.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;The &lt;a href="https://docs.videosdk.live/server-sdk/introduction?utm_source=devto-build-video-chat-app-nodejs&amp;amp;thrive_ref_id=646771370b6d2be844bc2db679d359c64ca854c600d3a7e68192007f69d10869" rel="noopener noreferrer"&gt;Server SDK&lt;/a&gt; manages rooms and tokens from Node.js, so you don't write REST requests or token-signing code. The &lt;a href="https://docs.videosdk.live/javascript/guide/video-and-audio-calling-api-sdk/quick-start?utm_source=devto-build-video-chat-app-nodejs&amp;amp;thrive_ref_id=646771370b6d2be844bc2db679d359c64ca854c600d3a7e68192007f69d10869" rel="noopener noreferrer"&gt;JavaScript SDK&lt;/a&gt; joins from the browser.&lt;/p&gt;

&lt;h2&gt;
  
  
  Use a video chat API to keep media off your server
&lt;/h2&gt;

&lt;p&gt;&lt;a href="https://videosdk.live/developer-hub/webrtc/webrtc-video-call-tutorial?utm_source=devto-build-video-chat-app-nodejs&amp;amp;thrive_ref_id=646771370b6d2be844bc2db679d359c64ca854c600d3a7e68192007f69d10869" rel="noopener noreferrer"&gt;WebRTC&lt;/a&gt; carries live audio and video between browsers. A &lt;a href="https://www.videosdk.live/developer-hub/webrtc/webrtc-signaling-server?utm_source=devto-build-video-chat-app-nodejs&amp;amp;thrive_ref_id=646771370b6d2be844bc2db679d359c64ca854c600d3a7e68192007f69d10869" rel="noopener noreferrer"&gt;WebRTC signaling server&lt;/a&gt; helps browsers find each other and agree on a connection. You'd write that relay yourself, for example over &lt;a href="https://www.videosdk.live/developer-hub/socketio/socket-io-webrtc/socket-io-webrtc?utm_source=devto-build-video-chat-app-nodejs&amp;amp;thrive_ref_id=646771370b6d2be844bc2db679d359c64ca854c600d3a7e68192007f69d10869" rel="noopener noreferrer"&gt;Socket.IO&lt;/a&gt;. Connections may also need help crossing firewalls and home routers. &lt;a href="https://videosdk.live/developer-hub/webrtc/webrtc-group-video-call?utm_source=devto-build-video-chat-app-nodejs&amp;amp;thrive_ref_id=646771370b6d2be844bc2db679d359c64ca854c600d3a7e68192007f69d10869" rel="noopener noreferrer"&gt;Group video calls&lt;/a&gt; usually add a media server to forward participants' feeds.&lt;/p&gt;

&lt;p&gt;Running those components yourself means operating and scaling the servers and keeping them healthy. Choose a hosted API to avoid that maintenance. This &lt;a href="https://www.videosdk.live/blog/10-best-video-calling-apis?utm_source=devto-build-video-chat-app-nodejs&amp;amp;thrive_ref_id=646771370b6d2be844bc2db679d359c64ca854c600d3a7e68192007f69d10869" rel="noopener noreferrer"&gt;comparison of video calling APIs&lt;/a&gt; covers the options. VideoSDK runs the signaling and media, while Express handles access and call controls.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F740n4c3wlem8i4bgpq6e.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F740n4c3wlem8i4bgpq6e.png" alt="VideoSDK room flow diagram: Express controls access, VideoSDK carries media, and the API secret stays on the Node.js server" width="800" height="450"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  Set up the Node.js video call server with Express
&lt;/h2&gt;

&lt;p&gt;Use Node 20.11 or newer. The app uses &lt;code&gt;--env-file&lt;/code&gt; and &lt;code&gt;import.meta.dirname&lt;/code&gt;, and it needs both. Its dependencies are pinned to Express 5.3.0, Server SDK 0.1.1, and JavaScript SDK 1.2.1.&lt;/p&gt;

&lt;p&gt;Signup includes $20 of free credit, with no credit card required, per &lt;a href="https://www.videosdk.live/pricing?utm_source=devto-build-video-chat-app-nodejs&amp;amp;thrive_ref_id=646771370b6d2be844bc2db679d359c64ca854c600d3a7e68192007f69d10869" rel="noopener noreferrer"&gt;VideoSDK pricing&lt;/a&gt;, checked 2 Nov 2026. Clone the repo and install its dependencies:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;git clone https://github.com/videosdk-community/videosdk-nodejs-video-calling
&lt;span class="nb"&gt;cd &lt;/span&gt;videosdk-nodejs-video-calling
npm &lt;span class="nb"&gt;install
cp&lt;/span&gt; .env.example .env
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;For an existing Express project, install the same pinned versions:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;npm &lt;span class="nb"&gt;install&lt;/span&gt; &lt;span class="nt"&gt;--save-exact&lt;/span&gt; express@5.3.0 @videosdk.live/server-sdk@0.1.1 @videosdk.live/js-sdk@1.2.1
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Open the &lt;a href="https://www.videosdk.live/signup?utm_source=devto-build-video-chat-app-nodejs&amp;amp;thrive_ref_id=646771370b6d2be844bc2db679d359c64ca854c600d3a7e68192007f69d10869" rel="noopener noreferrer"&gt;VideoSDK dashboard&lt;/a&gt;, select &lt;strong&gt;API Keys&lt;/strong&gt;, and copy your key and secret into &lt;code&gt;.env&lt;/code&gt;:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;&lt;span class="nv"&gt;VIDEOSDK_API_KEY&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;your-api-key
&lt;span class="nv"&gt;VIDEOSDK_SECRET&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;your-secret
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Run &lt;code&gt;npm run dev&lt;/code&gt;, then open &lt;code&gt;http://localhost:3000&lt;/code&gt;. The script runs &lt;code&gt;node --watch --env-file=.env server.js&lt;/code&gt;, which loads the environment file without dotenv. Express serves the page and browser JavaScript without a bundler.&lt;/p&gt;

&lt;p&gt;The default port is 3000. Set &lt;code&gt;PORT&lt;/code&gt; in your environment to use another port. The repo also provides &lt;code&gt;npm start&lt;/code&gt;, which loads the same &lt;code&gt;.env&lt;/code&gt; file without watch mode.&lt;/p&gt;

&lt;p&gt;At the top of &lt;code&gt;server.js&lt;/code&gt;, create one VideoSDK client with the server's credentials:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight javascript"&gt;&lt;code&gt;&lt;span class="k"&gt;import&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="nx"&gt;randomUUID&lt;/span&gt; &lt;span class="p"&gt;}&lt;/span&gt; &lt;span class="k"&gt;from&lt;/span&gt; &lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="s2"&gt;node:crypto&lt;/span&gt;&lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="k"&gt;import&lt;/span&gt; &lt;span class="nx"&gt;express&lt;/span&gt; &lt;span class="k"&gt;from&lt;/span&gt; &lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="s2"&gt;express&lt;/span&gt;&lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="k"&gt;import&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="nx"&gt;VideoSDK&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="nx"&gt;Grant&lt;/span&gt; &lt;span class="p"&gt;}&lt;/span&gt; &lt;span class="k"&gt;from&lt;/span&gt; &lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="s2"&gt;@videosdk.live/server-sdk&lt;/span&gt;&lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;

&lt;span class="c1"&gt;// Your API key and secret never leave this process.&lt;/span&gt;
&lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="nx"&gt;videosdk&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="k"&gt;new&lt;/span&gt; &lt;span class="nc"&gt;VideoSDK&lt;/span&gt;&lt;span class="p"&gt;({&lt;/span&gt;
  &lt;span class="na"&gt;apiKey&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="nx"&gt;process&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nx"&gt;env&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nx"&gt;VIDEOSDK_API_KEY&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="na"&gt;secret&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="nx"&gt;process&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nx"&gt;env&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nx"&gt;VIDEOSDK_SECRET&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
&lt;span class="p"&gt;});&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  Create a room and mint a scoped token
&lt;/h2&gt;

&lt;p&gt;Three terms explain the access model:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;A room identifies where participants join. Its ID goes in the invite link.&lt;/li&gt;
&lt;li&gt;A token is a JSON Web Token (JWT) the browser presents to VideoSDK. Your server signs it with the API secret.&lt;/li&gt;
&lt;li&gt;A grant is a permission in that token. &lt;code&gt;allow_join&lt;/code&gt; permits joining, and &lt;code&gt;allow_mod&lt;/code&gt; grants moderator permission.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;The &lt;code&gt;mintToken&lt;/code&gt; helper generates a participant ID and scopes the token to that participant and room. The host gets both grants for 2 hours. Guests get only &lt;code&gt;allow_join&lt;/code&gt; for 10 minutes:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight javascript"&gt;&lt;code&gt;&lt;span class="c1"&gt;// A token that works for one room and one participant only.&lt;/span&gt;
&lt;span class="c1"&gt;// The host can moderate and needs the token for the whole call (it proves&lt;/span&gt;
&lt;span class="c1"&gt;// who may end it). Guests only need theirs long enough to join.&lt;/span&gt;
&lt;span class="kd"&gt;function&lt;/span&gt; &lt;span class="nf"&gt;mintToken&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nx"&gt;roomId&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="nx"&gt;host&lt;/span&gt; &lt;span class="p"&gt;})&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
  &lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="nx"&gt;participantId&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nf"&gt;randomUUID&lt;/span&gt;&lt;span class="p"&gt;();&lt;/span&gt;
  &lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="nx"&gt;token&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nx"&gt;videosdk&lt;/span&gt;
    &lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;accessToken&lt;/span&gt;&lt;span class="p"&gt;()&lt;/span&gt;
    &lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;setParticipant&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nx"&gt;participantId&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
    &lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;forRoom&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nx"&gt;roomId&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
    &lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;grant&lt;/span&gt;&lt;span class="p"&gt;(...(&lt;/span&gt;&lt;span class="nx"&gt;host&lt;/span&gt; &lt;span class="p"&gt;?&lt;/span&gt; &lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="nx"&gt;Grant&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nx"&gt;AllowJoin&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="nx"&gt;Grant&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nx"&gt;AllowMod&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt; &lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="nx"&gt;Grant&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nx"&gt;AllowJoin&lt;/span&gt;&lt;span class="p"&gt;]))&lt;/span&gt;
    &lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;expiresIn&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nx"&gt;host&lt;/span&gt; &lt;span class="p"&gt;?&lt;/span&gt; &lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="s2"&gt;2h&lt;/span&gt;&lt;span class="dl"&gt;"&lt;/span&gt; &lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="s2"&gt;10m&lt;/span&gt;&lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
    &lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;toJwt&lt;/span&gt;&lt;span class="p"&gt;();&lt;/span&gt;
  &lt;span class="k"&gt;return&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="nx"&gt;roomId&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="nx"&gt;participantId&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="nx"&gt;token&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="nx"&gt;host&lt;/span&gt; &lt;span class="p"&gt;};&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;The &lt;a href="https://docs.videosdk.live/server-sdk/authentication-and-tokens?utm_source=devto-build-video-chat-app-nodejs&amp;amp;thrive_ref_id=646771370b6d2be844bc2db679d359c64ca854c600d3a7e68192007f69d10869" rel="noopener noreferrer"&gt;access token builder&lt;/a&gt; signs locally. Calling &lt;code&gt;toJwt()&lt;/code&gt; makes no network request. The browser must later use the participant ID returned alongside the token.&lt;/p&gt;

&lt;p&gt;These participant tokens have &lt;code&gt;roles: ["rtc"]&lt;/code&gt;. They authorize joining a room, not calling the management API. Even the host asks your server to end the call. Your server holds the API credentials and checks the host's signed permissions before making the management calls.&lt;/p&gt;

&lt;p&gt;The shorter guest expiry gives the guest time to join. Token expiry doesn't disconnect a participant who is already in the call. The host token also authorizes the end request, so its expiry must outlast the call.&lt;/p&gt;

&lt;p&gt;Pass &lt;code&gt;Grant.AllowJoin&lt;/code&gt; explicitly for guests. With no grants, the builder defaults to &lt;code&gt;allow_join&lt;/code&gt; plus &lt;code&gt;allow_mod&lt;/code&gt;. Omitting the guest grant would give that participant moderator permission.&lt;/p&gt;

&lt;p&gt;Create the room, then return credentials for its host:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight javascript"&gt;&lt;code&gt;&lt;span class="c1"&gt;// Create a room. Whoever creates it is the host.&lt;/span&gt;
&lt;span class="nx"&gt;app&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;post&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="s2"&gt;/api/rooms&lt;/span&gt;&lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="k"&gt;async &lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nx"&gt;req&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="nx"&gt;res&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="o"&gt;=&amp;gt;&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
  &lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="nx"&gt;room&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="k"&gt;await&lt;/span&gt; &lt;span class="nx"&gt;videosdk&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nx"&gt;rooms&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;create&lt;/span&gt;&lt;span class="p"&gt;();&lt;/span&gt;
  &lt;span class="nx"&gt;res&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;json&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nf"&gt;mintToken&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nx"&gt;room&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nx"&gt;roomId&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="na"&gt;host&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="kc"&gt;true&lt;/span&gt; &lt;span class="p"&gt;}));&lt;/span&gt;
&lt;span class="p"&gt;});&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;A guest supplies the room ID from the invite link. Validate it before issuing credentials, and return a different error for an unknown room and a disabled one:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight javascript"&gt;&lt;code&gt;&lt;span class="c1"&gt;// Let a guest in, but only into a room that exists and is still open.&lt;/span&gt;
&lt;span class="nx"&gt;app&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;post&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="s2"&gt;/api/rooms/:roomId/token&lt;/span&gt;&lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="k"&gt;async &lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nx"&gt;req&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="nx"&gt;res&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="o"&gt;=&amp;gt;&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
  &lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="nx"&gt;valid&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="nx"&gt;room&lt;/span&gt; &lt;span class="p"&gt;}&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="k"&gt;await&lt;/span&gt; &lt;span class="nx"&gt;videosdk&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nx"&gt;rooms&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;validate&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nx"&gt;req&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nx"&gt;params&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nx"&gt;roomId&lt;/span&gt;&lt;span class="p"&gt;);&lt;/span&gt;
  &lt;span class="k"&gt;if &lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="o"&gt;!&lt;/span&gt;&lt;span class="nx"&gt;valid&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="k"&gt;return&lt;/span&gt; &lt;span class="nx"&gt;res&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;status&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="mi"&gt;404&lt;/span&gt;&lt;span class="p"&gt;).&lt;/span&gt;&lt;span class="nf"&gt;json&lt;/span&gt;&lt;span class="p"&gt;({&lt;/span&gt; &lt;span class="na"&gt;error&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="s2"&gt;No call with this link.&lt;/span&gt;&lt;span class="dl"&gt;"&lt;/span&gt; &lt;span class="p"&gt;});&lt;/span&gt;
  &lt;span class="k"&gt;if &lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nx"&gt;room&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nx"&gt;disabled&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="k"&gt;return&lt;/span&gt; &lt;span class="nx"&gt;res&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;status&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="mi"&gt;410&lt;/span&gt;&lt;span class="p"&gt;).&lt;/span&gt;&lt;span class="nf"&gt;json&lt;/span&gt;&lt;span class="p"&gt;({&lt;/span&gt; &lt;span class="na"&gt;error&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="s2"&gt;This call has ended.&lt;/span&gt;&lt;span class="dl"&gt;"&lt;/span&gt; &lt;span class="p"&gt;});&lt;/span&gt;
  &lt;span class="nx"&gt;res&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;json&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nf"&gt;mintToken&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nx"&gt;room&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nx"&gt;roomId&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="na"&gt;host&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="kc"&gt;false&lt;/span&gt; &lt;span class="p"&gt;}));&lt;/span&gt;
&lt;span class="p"&gt;});&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fkx1zz8qsxa45sh2pqniu.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fkx1zz8qsxa45sh2pqniu.png" alt="VideoSDK room flow diagram: the Node.js server issues separate scoped tokens for the host and guests" width="800" height="450"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Add your login or invite check before this route issues a token. The demo admits anyone with the link. Token issuance is the point where your application decides who can join. The &lt;a href="https://docs.videosdk.live/javascript/guide/video-and-audio-calling-api-sdk/server-setup?utm_source=devto-build-video-chat-app-nodejs&amp;amp;thrive_ref_id=646771370b6d2be844bc2db679d359c64ca854c600d3a7e68192007f69d10869" rel="noopener noreferrer"&gt;JavaScript SDK server setup guide&lt;/a&gt; covers the same backend token step.&lt;/p&gt;

&lt;p&gt;The server stores no room or host state. The signed token carries the room ID and permissions that the end route checks later. The response's &lt;code&gt;host&lt;/code&gt; field controls button visibility, while the signed grants enforce access.&lt;/p&gt;

&lt;h2&gt;
  
  
  Join the video call from the browser
&lt;/h2&gt;

&lt;p&gt;The browser uses plain HTML and one JavaScript file. VideoSDK's &lt;a href="https://www.videosdk.live/developer-hub/webrtc/video-calling-sdk?utm_source=devto-build-video-chat-app-nodejs&amp;amp;thrive_ref_id=646771370b6d2be844bc2db679d359c64ca854c600d3a7e68192007f69d10869" rel="noopener noreferrer"&gt;video calling SDK&lt;/a&gt; loads from the installed package, so the same &lt;code&gt;npm install&lt;/code&gt; covers both SDKs. Express serves its bundle at &lt;code&gt;/vendor/videosdk.js&lt;/code&gt;:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight javascript"&gt;&lt;code&gt;&lt;span class="nx"&gt;app&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;get&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="s2"&gt;/vendor/videosdk.js&lt;/span&gt;&lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nx"&gt;req&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="nx"&gt;res&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="o"&gt;=&amp;gt;&lt;/span&gt;
  &lt;span class="nx"&gt;res&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;sendFile&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="k"&gt;import&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nx"&gt;meta&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nx"&gt;dirname&lt;/span&gt; &lt;span class="o"&gt;+&lt;/span&gt; &lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="s2"&gt;/node_modules/@videosdk.live/js-sdk/videosdk.js&lt;/span&gt;&lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="p"&gt;),&lt;/span&gt;
&lt;span class="p"&gt;);&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Submitting the form asks your server for credentials. On the start page, that request creates a room. From an invite link, it requests a guest token unless the browser already has saved host credentials:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight javascript"&gt;&lt;code&gt;    &lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="nx"&gt;roomId&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nf"&gt;roomInUrl&lt;/span&gt;&lt;span class="p"&gt;();&lt;/span&gt;
    &lt;span class="c1"&gt;// A host who refreshes keeps their host token. Everyone else asks the server.&lt;/span&gt;
    &lt;span class="nx"&gt;session&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nx"&gt;roomId&lt;/span&gt;
      &lt;span class="p"&gt;?&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nx"&gt;JSON&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;parse&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nx"&gt;sessionStorage&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;getItem&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nx"&gt;roomId&lt;/span&gt;&lt;span class="p"&gt;))&lt;/span&gt; &lt;span class="o"&gt;??&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="k"&gt;await&lt;/span&gt; &lt;span class="nf"&gt;api&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s2"&gt;`/api/rooms/&lt;/span&gt;&lt;span class="p"&gt;${&lt;/span&gt;&lt;span class="nx"&gt;roomId&lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="s2"&gt;/token`&lt;/span&gt;&lt;span class="p"&gt;)))&lt;/span&gt;
      &lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="k"&gt;await&lt;/span&gt; &lt;span class="nf"&gt;api&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="s2"&gt;/api/rooms&lt;/span&gt;&lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="p"&gt;);&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;The host's credentials live in &lt;code&gt;sessionStorage&lt;/code&gt; under the room ID. Refreshing the host tab retains its host token. Guests request a fresh token when they join.&lt;/p&gt;

&lt;p&gt;After creating the room, the browser updates its URL to &lt;code&gt;/room/:roomId&lt;/code&gt; with &lt;code&gt;history.replaceState&lt;/code&gt;. That URL is the invite link. It contains the room ID, while the host token stays in &lt;code&gt;sessionStorage&lt;/code&gt;. Opening the link as a guest doesn't copy the host's permissions.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fcjj0z98d4fh5t5g318zg.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fcjj0z98d4fh5t5g318zg.png" alt="Node.js video call app: the Join the call form opened from an Express invite link" width="800" height="450"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Pass the credentials to the JavaScript SDK to &lt;a href="https://docs.videosdk.live/javascript/guide/video-and-audio-calling-api-sdk/setup-call/join-meeting?utm_source=devto-build-video-chat-app-nodejs&amp;amp;thrive_ref_id=646771370b6d2be844bc2db679d359c64ca854c600d3a7e68192007f69d10869" rel="noopener noreferrer"&gt;join the room&lt;/a&gt;:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight javascript"&gt;&lt;code&gt;&lt;span class="k"&gt;async&lt;/span&gt; &lt;span class="kd"&gt;function&lt;/span&gt; &lt;span class="nf"&gt;join&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nx"&gt;name&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
  &lt;span class="nx"&gt;VideoSDK&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;config&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nx"&gt;session&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nx"&gt;token&lt;/span&gt;&lt;span class="p"&gt;);&lt;/span&gt;
  &lt;span class="nx"&gt;meeting&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nx"&gt;VideoSDK&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;initMeeting&lt;/span&gt;&lt;span class="p"&gt;({&lt;/span&gt;
    &lt;span class="na"&gt;meetingId&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="nx"&gt;session&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nx"&gt;roomId&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
    &lt;span class="na"&gt;participantId&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="nx"&gt;session&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nx"&gt;participantId&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="c1"&gt;// must match the id inside the token&lt;/span&gt;
    &lt;span class="nx"&gt;name&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
    &lt;span class="na"&gt;micEnabled&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="kc"&gt;true&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
    &lt;span class="na"&gt;webcamEnabled&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="kc"&gt;true&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="p"&gt;});&lt;/span&gt;

  &lt;span class="nx"&gt;meeting&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;on&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="s2"&gt;meeting-joined&lt;/span&gt;&lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="p"&gt;()&lt;/span&gt; &lt;span class="o"&gt;=&amp;gt;&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
    &lt;span class="nx"&gt;meeting&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nx"&gt;participants&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;forEach&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nx"&gt;addTile&lt;/span&gt;&lt;span class="p"&gt;);&lt;/span&gt;
    &lt;span class="nf"&gt;$&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="s2"&gt;join-form&lt;/span&gt;&lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="p"&gt;).&lt;/span&gt;&lt;span class="nx"&gt;hidden&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="kc"&gt;true&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
    &lt;span class="nf"&gt;$&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="s2"&gt;call&lt;/span&gt;&lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="p"&gt;).&lt;/span&gt;&lt;span class="nx"&gt;hidden&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="kc"&gt;false&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
    &lt;span class="nf"&gt;$&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="s2"&gt;end&lt;/span&gt;&lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="p"&gt;).&lt;/span&gt;&lt;span class="nx"&gt;hidden&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="o"&gt;!&lt;/span&gt;&lt;span class="nx"&gt;session&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nx"&gt;host&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
    &lt;span class="nf"&gt;$&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="s2"&gt;room-label&lt;/span&gt;&lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="p"&gt;).&lt;/span&gt;&lt;span class="nx"&gt;textContent&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nx"&gt;session&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nx"&gt;roomId&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
    &lt;span class="nf"&gt;$&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="s2"&gt;room-label&lt;/span&gt;&lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="p"&gt;).&lt;/span&gt;&lt;span class="nx"&gt;hidden&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nf"&gt;$&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="s2"&gt;copy-link&lt;/span&gt;&lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="p"&gt;).&lt;/span&gt;&lt;span class="nx"&gt;hidden&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="kc"&gt;false&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
  &lt;span class="p"&gt;});&lt;/span&gt;
  &lt;span class="nx"&gt;meeting&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;on&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="s2"&gt;participant-joined&lt;/span&gt;&lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="nx"&gt;addTile&lt;/span&gt;&lt;span class="p"&gt;);&lt;/span&gt;
  &lt;span class="nx"&gt;meeting&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;on&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="s2"&gt;participant-left&lt;/span&gt;&lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nx"&gt;participant&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="o"&gt;=&amp;gt;&lt;/span&gt; &lt;span class="nf"&gt;$&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s2"&gt;`tile-&lt;/span&gt;&lt;span class="p"&gt;${&lt;/span&gt;&lt;span class="nx"&gt;participant&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nx"&gt;id&lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="s2"&gt;`&lt;/span&gt;&lt;span class="p"&gt;)?.&lt;/span&gt;&lt;span class="nf"&gt;remove&lt;/span&gt;&lt;span class="p"&gt;());&lt;/span&gt;
  &lt;span class="nx"&gt;meeting&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;on&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="s2"&gt;meeting-left&lt;/span&gt;&lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="nx"&gt;onMeetingLeft&lt;/span&gt;&lt;span class="p"&gt;);&lt;/span&gt;

  &lt;span class="nf"&gt;addTile&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nx"&gt;meeting&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nx"&gt;localParticipant&lt;/span&gt;&lt;span class="p"&gt;);&lt;/span&gt;
  &lt;span class="k"&gt;await&lt;/span&gt; &lt;span class="nx"&gt;meeting&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;join&lt;/span&gt;&lt;span class="p"&gt;();&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;The JavaScript SDK calls the room ID &lt;code&gt;meetingId&lt;/code&gt;. Pass &lt;code&gt;session.roomId&lt;/code&gt; there, and keep &lt;code&gt;participantId&lt;/code&gt; identical to the ID in the token. The display name comes from the form and isn't part of the token.&lt;/p&gt;

&lt;p&gt;The event handlers add participants already in the call and those who join later. They remove a tile when its participant leaves. Each tile receives media through stream events:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight javascript"&gt;&lt;code&gt;  &lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="nx"&gt;render&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nx"&gt;stream&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="nx"&gt;on&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="o"&gt;=&amp;gt;&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
    &lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="nx"&gt;media&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nx"&gt;on&lt;/span&gt; &lt;span class="p"&gt;?&lt;/span&gt; &lt;span class="k"&gt;new&lt;/span&gt; &lt;span class="nc"&gt;MediaStream&lt;/span&gt;&lt;span class="p"&gt;([&lt;/span&gt;&lt;span class="nx"&gt;stream&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nx"&gt;track&lt;/span&gt;&lt;span class="p"&gt;])&lt;/span&gt; &lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="kc"&gt;null&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
    &lt;span class="k"&gt;if &lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nx"&gt;stream&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nx"&gt;kind&lt;/span&gt; &lt;span class="o"&gt;===&lt;/span&gt; &lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="s2"&gt;video&lt;/span&gt;&lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
      &lt;span class="nx"&gt;video&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nx"&gt;srcObject&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nx"&gt;media&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
      &lt;span class="nx"&gt;tile&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nx"&gt;classList&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;toggle&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="s2"&gt;cam-off&lt;/span&gt;&lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="o"&gt;!&lt;/span&gt;&lt;span class="nx"&gt;on&lt;/span&gt;&lt;span class="p"&gt;);&lt;/span&gt;
    &lt;span class="p"&gt;}&lt;/span&gt;
    &lt;span class="k"&gt;if &lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nx"&gt;stream&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nx"&gt;kind&lt;/span&gt; &lt;span class="o"&gt;===&lt;/span&gt; &lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="s2"&gt;audio&lt;/span&gt;&lt;span class="dl"&gt;"&lt;/span&gt; &lt;span class="o"&gt;&amp;amp;&amp;amp;&lt;/span&gt; &lt;span class="nx"&gt;audio&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="nx"&gt;audio&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nx"&gt;srcObject&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nx"&gt;media&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
  &lt;span class="p"&gt;};&lt;/span&gt;
  &lt;span class="nx"&gt;participant&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;on&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="s2"&gt;stream-enabled&lt;/span&gt;&lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nx"&gt;stream&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="o"&gt;=&amp;gt;&lt;/span&gt; &lt;span class="nf"&gt;render&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nx"&gt;stream&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="kc"&gt;true&lt;/span&gt;&lt;span class="p"&gt;));&lt;/span&gt;
  &lt;span class="nx"&gt;participant&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;on&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="s2"&gt;stream-disabled&lt;/span&gt;&lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nx"&gt;stream&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="o"&gt;=&amp;gt;&lt;/span&gt; &lt;span class="nf"&gt;render&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nx"&gt;stream&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="kc"&gt;false&lt;/span&gt;&lt;span class="p"&gt;));&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;A &lt;code&gt;MediaStream&lt;/code&gt; holds tracks, and each track carries one audio or video feed. Enabling a stream attaches its track to a media element. Disabling it clears that element. The app never plays the local participant's audio back to them.&lt;/p&gt;

&lt;p&gt;The repo's full &lt;code&gt;addTile&lt;/code&gt; function also renders tracks already present in &lt;code&gt;participant.streams&lt;/code&gt;. It checks whether a tile exists before adding one, so repeated participant handling doesn't duplicate tiles.&lt;/p&gt;

&lt;p&gt;Camera-off tiles show the participant's initial. The controls call &lt;code&gt;meeting.muteMic()&lt;/code&gt; or &lt;code&gt;meeting.unmuteMic()&lt;/code&gt;, and &lt;code&gt;meeting.disableWebcam()&lt;/code&gt; or &lt;code&gt;meeting.enableWebcam()&lt;/code&gt;. &lt;strong&gt;Leave&lt;/strong&gt; calls &lt;code&gt;meeting.leave()&lt;/code&gt; and removes only that participant.&lt;/p&gt;

&lt;p&gt;Open &lt;code&gt;http://localhost:3000&lt;/code&gt;, enter a name, and press &lt;strong&gt;Start call&lt;/strong&gt;. Copy the invite link and open it in a second tab. Join as a guest and check that the guest has no &lt;strong&gt;End for everyone&lt;/strong&gt; button.&lt;/p&gt;

&lt;p&gt;Turn the guest's camera off and confirm that its tile shows an initial in the host tab. Turn it back on to restore video. Mute and unmute the guest to check the audio controls.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Faneyin6wlzl2o7ysjegy.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Faneyin6wlzl2o7ysjegy.png" alt="Node.js video call app: two participants and the host's End for everyone button" width="800" height="450"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  End the video call for everyone
&lt;/h2&gt;

&lt;p&gt;A session is one running instance of a room. Disconnecting that session and disabling the room are separate operations. The host's end route performs both.&lt;/p&gt;

&lt;p&gt;Pressing &lt;strong&gt;End for everyone&lt;/strong&gt; sends the host token in the &lt;code&gt;Authorization&lt;/code&gt; header. This route expects the raw JWT, without a &lt;code&gt;Bearer&lt;/code&gt; prefix:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight javascript"&gt;&lt;code&gt;    &lt;span class="k"&gt;await&lt;/span&gt; &lt;span class="nf"&gt;api&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s2"&gt;`/api/rooms/&lt;/span&gt;&lt;span class="p"&gt;${&lt;/span&gt;&lt;span class="nx"&gt;session&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nx"&gt;roomId&lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="s2"&gt;/end`&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="na"&gt;Authorization&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="nx"&gt;session&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nx"&gt;token&lt;/span&gt; &lt;span class="p"&gt;});&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;The server verifies the token before it changes the call:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight javascript"&gt;&lt;code&gt;&lt;span class="c1"&gt;// End the call for everyone. Only a token this server minted with&lt;/span&gt;
&lt;span class="c1"&gt;// allow_mod for this exact room can do it.&lt;/span&gt;
&lt;span class="nx"&gt;app&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;post&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="s2"&gt;/api/rooms/:roomId/end&lt;/span&gt;&lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="k"&gt;async &lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nx"&gt;req&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="nx"&gt;res&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="o"&gt;=&amp;gt;&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
  &lt;span class="kd"&gt;let&lt;/span&gt; &lt;span class="nx"&gt;claims&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
  &lt;span class="k"&gt;try&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
    &lt;span class="nx"&gt;claims&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nx"&gt;videosdk&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;verifyToken&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nx"&gt;req&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;get&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="s2"&gt;Authorization&lt;/span&gt;&lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="o"&gt;??&lt;/span&gt; &lt;span class="dl"&gt;""&lt;/span&gt;&lt;span class="p"&gt;);&lt;/span&gt;
  &lt;span class="p"&gt;}&lt;/span&gt; &lt;span class="k"&gt;catch&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
    &lt;span class="k"&gt;return&lt;/span&gt; &lt;span class="nx"&gt;res&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;status&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="mi"&gt;401&lt;/span&gt;&lt;span class="p"&gt;).&lt;/span&gt;&lt;span class="nf"&gt;json&lt;/span&gt;&lt;span class="p"&gt;({&lt;/span&gt; &lt;span class="na"&gt;error&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="s2"&gt;Invalid or expired token.&lt;/span&gt;&lt;span class="dl"&gt;"&lt;/span&gt; &lt;span class="p"&gt;});&lt;/span&gt;
  &lt;span class="p"&gt;}&lt;/span&gt;
  &lt;span class="k"&gt;if &lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nx"&gt;claims&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nx"&gt;roomId&lt;/span&gt; &lt;span class="o"&gt;!==&lt;/span&gt; &lt;span class="nx"&gt;req&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nx"&gt;params&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nx"&gt;roomId&lt;/span&gt; &lt;span class="o"&gt;||&lt;/span&gt; &lt;span class="o"&gt;!&lt;/span&gt;&lt;span class="nx"&gt;claims&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nx"&gt;permissions&lt;/span&gt;&lt;span class="p"&gt;?.&lt;/span&gt;&lt;span class="nf"&gt;includes&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nx"&gt;Grant&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nx"&gt;AllowMod&lt;/span&gt;&lt;span class="p"&gt;))&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
    &lt;span class="k"&gt;return&lt;/span&gt; &lt;span class="nx"&gt;res&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;status&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="mi"&gt;403&lt;/span&gt;&lt;span class="p"&gt;).&lt;/span&gt;&lt;span class="nf"&gt;json&lt;/span&gt;&lt;span class="p"&gt;({&lt;/span&gt; &lt;span class="na"&gt;error&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="s2"&gt;Only the host can end this call.&lt;/span&gt;&lt;span class="dl"&gt;"&lt;/span&gt; &lt;span class="p"&gt;});&lt;/span&gt;
  &lt;span class="p"&gt;}&lt;/span&gt;
  &lt;span class="c1"&gt;// Ending the live session disconnects everyone in the call.&lt;/span&gt;
  &lt;span class="c1"&gt;// Ending the room then makes sure nobody can start it again.&lt;/span&gt;
  &lt;span class="k"&gt;await&lt;/span&gt; &lt;span class="nx"&gt;videosdk&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nx"&gt;sessions&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;end&lt;/span&gt;&lt;span class="p"&gt;({&lt;/span&gt; &lt;span class="na"&gt;roomId&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="nx"&gt;req&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nx"&gt;params&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nx"&gt;roomId&lt;/span&gt; &lt;span class="p"&gt;});&lt;/span&gt;
  &lt;span class="k"&gt;await&lt;/span&gt; &lt;span class="nx"&gt;videosdk&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nx"&gt;rooms&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;end&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nx"&gt;req&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nx"&gt;params&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nx"&gt;roomId&lt;/span&gt;&lt;span class="p"&gt;);&lt;/span&gt;
  &lt;span class="nx"&gt;res&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;sendStatus&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="mi"&gt;204&lt;/span&gt;&lt;span class="p"&gt;);&lt;/span&gt;
&lt;span class="p"&gt;});&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;code&gt;verifyToken&lt;/code&gt; checks the signature and expiry. An invalid or expired token gets 401. A valid token for another room, or one without &lt;code&gt;allow_mod&lt;/code&gt;, gets 403. Hiding the guest's button doesn't enforce this restriction; the route does.&lt;/p&gt;

&lt;p&gt;After authorization, the route disconnects the live session, disables the room, and returns 204. The host browser doesn't call &lt;code&gt;meeting.end()&lt;/code&gt; or &lt;code&gt;meeting.leave()&lt;/code&gt; in this flow. VideoSDK disconnects the host along with everyone else.&lt;/p&gt;

&lt;h3&gt;
  
  
  End the live session and disable the room
&lt;/h3&gt;

&lt;p&gt;I tested these operations on 29 Oct 2026 with Server SDK 0.1.1 and JavaScript SDK 1.2.1. The test used two Chromium windows with fake camera and mic devices:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;code&gt;sessions.end&lt;/code&gt; disconnected every participant within a second. The room stayed enabled.&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;rooms.end&lt;/code&gt; alone disabled the room but left live participants connected for more than 60 seconds.&lt;/li&gt;
&lt;li&gt;A guest token sent directly to the end route got 403.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;So call &lt;code&gt;sessions.end&lt;/code&gt; first, then &lt;code&gt;rooms.end&lt;/code&gt;. The first call disconnects everyone in the live session. The second disables the room, so nobody can start a new call in it. The &lt;a href="https://docs.videosdk.live/server-sdk/reference/sessions?utm_source=devto-build-video-chat-app-nodejs&amp;amp;thrive_ref_id=646771370b6d2be844bc2db679d359c64ca854c600d3a7e68192007f69d10869" rel="noopener noreferrer"&gt;Server SDK sessions reference&lt;/a&gt; lists the other &lt;code&gt;sessions.end&lt;/code&gt; options.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fb0zi7lhxfjs43v1mebfe.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fb0zi7lhxfjs43v1mebfe.png" alt="VideoSDK room flow diagram: Node.js uses sessions.end to disconnect participants and rooms.end to disable the room" width="800" height="450"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Every browser, including the host's, receives &lt;code&gt;meeting-left&lt;/code&gt; with code 1009. The app checks that code to choose its message:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight javascript"&gt;&lt;code&gt;  &lt;span class="c1"&gt;// The server's sessions.end() arrives here as MEETING_END_API (1009).&lt;/span&gt;
  &lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="nx"&gt;endedByServer&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nx"&gt;reason&lt;/span&gt;&lt;span class="p"&gt;?.&lt;/span&gt;&lt;span class="nx"&gt;code&lt;/span&gt; &lt;span class="o"&gt;===&lt;/span&gt; &lt;span class="nx"&gt;VideoSDK&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nx"&gt;Constants&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nx"&gt;leaveReason&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nx"&gt;MEETING_END_API&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Code 1009 displays "The host ended this call for everyone." Other leave reasons display "You left the call." A server-ended call also clears the saved host credentials. Opening the old link and trying to join returns 410 and displays "This call has ended."&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fbe5era1no20lv9kaiovw.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fbe5era1no20lv9kaiovw.png" alt="Node.js video call app: an ended room refuses a rejoin attempt with This call has ended" width="800" height="450"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  Add video calling to your own Express app
&lt;/h2&gt;

&lt;p&gt;Install the pinned packages and set &lt;code&gt;VIDEOSDK_API_KEY&lt;/code&gt; and &lt;code&gt;VIDEOSDK_SECRET&lt;/code&gt; in your environment. Copy the VideoSDK client, &lt;code&gt;mintToken&lt;/code&gt;, and the three API routes. Include &lt;code&gt;/room/:roomId&lt;/code&gt; so invite links serve your page. Then serve the SDK bundle and connect the browser's join and tile code.&lt;/p&gt;

&lt;p&gt;You can also give the repo to your AI coding agent and ask it to integrate these routes and browser controls. If you sign tokens without the Server SDK, VideoSDK's &lt;a href="https://docs.videosdk.live/api-reference/realtime-communication/server-side-examples-nodejs?utm_source=devto-build-video-chat-app-nodejs&amp;amp;thrive_ref_id=646771370b6d2be844bc2db679d359c64ca854c600d3a7e68192007f69d10869" rel="noopener noreferrer"&gt;Node.js API server example&lt;/a&gt; shows an Express token server built on plain JWT code.&lt;/p&gt;

&lt;p&gt;Before deploying, account for the demo's limits:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;It has no login. Add authentication middleware to &lt;code&gt;POST /api/rooms&lt;/code&gt; and &lt;code&gt;POST /api/rooms/:roomId/token&lt;/code&gt;.&lt;/li&gt;
&lt;li&gt;Camera access needs localhost or HTTPS. The repo has no deployment configuration, so configure HTTPS before sharing a link with another machine.&lt;/li&gt;
&lt;li&gt;The host token expires after 2 hours. Later end requests return 401, even if the call is running. Increase the host expiry in &lt;code&gt;mintToken&lt;/code&gt; for longer calls.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Node.js video chat app FAQ
&lt;/h2&gt;

&lt;h3&gt;
  
  
  How do I build a video chat app with Node.js?
&lt;/h3&gt;

&lt;p&gt;To make a video calling app with Node.js, use Node.js to create rooms and issue participant tokens, then join from the browser. VideoSDK's Server SDK handles room management and token signing, while its JavaScript SDK connects participants. VideoSDK carries the audio and video.&lt;/p&gt;

&lt;h3&gt;
  
  
  Does a Node.js video chat app need WebRTC code?
&lt;/h3&gt;

&lt;p&gt;A Node.js video chat app built with VideoSDK needs no WebRTC code in its application files. VideoSDK's JavaScript SDK handles browser connections, while the Server SDK manages rooms and tokens in Node.js.&lt;/p&gt;

&lt;h3&gt;
  
  
  What is a video call API?
&lt;/h3&gt;

&lt;p&gt;A video call API adds live audio and video to your application through a hosted service. Your application creates rooms and controls access, while the service handles signaling and media.&lt;/p&gt;

&lt;h3&gt;
  
  
  Can I end a video call for everyone from the server?
&lt;/h3&gt;

&lt;p&gt;Yes. Call &lt;code&gt;sessions.end&lt;/code&gt; to disconnect every participant in a VideoSDK call, then &lt;code&gt;rooms.end&lt;/code&gt; to disable the room so nobody can start it again. In the 29 Oct 2026 test with Server SDK 0.1.1 and JavaScript SDK 1.2.1, &lt;code&gt;rooms.end&lt;/code&gt; alone left live participants connected.&lt;/p&gt;

&lt;h2&gt;
  
  
  Build a video chat app with Node.js and test both exits
&lt;/h2&gt;

&lt;p&gt;Clone &lt;a href="https://github.com/videosdk-community/videosdk-nodejs-video-calling" rel="noopener noreferrer"&gt;videosdk-nodejs-video-calling on GitHub&lt;/a&gt; and &lt;a href="https://www.videosdk.live/signup?utm_source=devto-build-video-chat-app-nodejs&amp;amp;thrive_ref_id=646771370b6d2be844bc2db679d359c64ca854c600d3a7e68192007f69d10869" rel="noopener noreferrer"&gt;get a free API key from the VideoSDK dashboard&lt;/a&gt;. Add your credentials to &lt;code&gt;.env&lt;/code&gt; and run &lt;code&gt;npm run dev&lt;/code&gt;. The &lt;a href="https://docs.videosdk.live/server-sdk/introduction?utm_source=devto-build-video-chat-app-nodejs&amp;amp;thrive_ref_id=646771370b6d2be844bc2db679d359c64ca854c600d3a7e68192007f69d10869" rel="noopener noreferrer"&gt;Server SDK docs&lt;/a&gt; cover the room and token methods used here.&lt;/p&gt;

&lt;p&gt;Join from two tabs. Try &lt;strong&gt;Leave&lt;/strong&gt; as the guest and confirm the host stays connected. Rejoin, then press &lt;strong&gt;End for everyone&lt;/strong&gt; as the host and confirm both browsers disconnect. Try the invite link once more to check that the room refuses entry.&lt;/p&gt;

</description>
      <category>node</category>
      <category>webrtc</category>
      <category>javascript</category>
      <category>tutorial</category>
    </item>
    <item>
      <title>Build ESP32 Video &amp; Audio Calling With VideoSDK</title>
      <dc:creator>Zishan Ghaniwala</dc:creator>
      <pubDate>Wed, 05 Aug 2026 12:10:09 +0000</pubDate>
      <link>https://dev.to/video-sdk/build-esp32-video-audio-calling-with-videosdk-3338</link>
      <guid>https://dev.to/video-sdk/build-esp32-video-audio-calling-with-videosdk-3338</guid>
      <description>&lt;blockquote&gt;
&lt;p&gt;ESP32 video calling runs two-way WebRTC audio and video directly on an ESP32-S3 microcontroller. The VideoSDK IoT SDK ships as an ESP-IDF component that joins your board to the same VideoSDK room a browser joins, with no signaling server of your own. Set a token, flash the firmware, and join from the web.&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;Until recently, ESP32 video calling meant building, hosting, and maintaining your own signaling and media backend before a single frame moved. The VideoSDK IoT SDK cuts out that infrastructure. It provides a native ESP-IDF component that hooks an ESP32-S3 directly into a WebRTC room, the exact same room a browser or mobile app joins.&lt;/p&gt;

&lt;p&gt;Your board streams camera and microphone input into the room, and on boards with a screen and speaker, it draws remote video on the LCD and plays remote audio back. By the end of this guide you will have an ESP32-S3 holding a live video and audio call with a web application, without managing a custom media server.&lt;/p&gt;

&lt;h2&gt;
  
  
  What Is ESP32 Video Calling?
&lt;/h2&gt;

&lt;p&gt;ESP32 video calling is defined as real-time, two-way audio and video streaming that originates and terminates on an ESP32 microcontroller rather than on a phone or laptop. It works by capturing frames from an onboard camera and samples from a microphone, encoding them on-device, and publishing them over WebRTC to every other participant in a room.&lt;/p&gt;

&lt;p&gt;The &lt;a href="https://components.espressif.com/components/videosdk/iot-sdk" rel="noopener noreferrer"&gt;VideoSDK IoT SDK&lt;/a&gt; provides this capability as a native ESP-IDF component for the ESP32-S3 family, published on Espressif's official component registry under the MIT license. It handles the room connection logic, WebRTC encryption (DTLS and SRTP), and media stream lifecycle, so your firmware manages calls through a handful of function calls.&lt;/p&gt;

&lt;p&gt;The board is a first-class participant, not a camera feeding a gateway. It appears in the participant list, it can be muted, and it shares the same room ID your &lt;a href="https://docs.videosdk.live/react/guide/video-and-audio-calling-api-sdk/quick-start" rel="noopener noreferrer"&gt;React&lt;/a&gt; or JavaScript client already uses.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fyowoy6outlffla5515q0.jpeg" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fyowoy6outlffla5515q0.jpeg" alt="Architecture" width="800" height="450"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  What You Need Before You Start
&lt;/h2&gt;

&lt;p&gt;The board you choose decides whether your device can only send media or handle full two-way playback, so pick it before writing any code.&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Board&lt;/th&gt;
&lt;th&gt;Send (Mic &amp;amp; Camera)&lt;/th&gt;
&lt;th&gt;Receive (Speaker &amp;amp; LCD)&lt;/th&gt;
&lt;th&gt;Hardware Detail&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;XIAO ESP32-S3 (Sense)&lt;/td&gt;
&lt;td&gt;Yes&lt;/td&gt;
&lt;td&gt;No&lt;/td&gt;
&lt;td&gt;Includes camera &amp;amp; mic, but lacks onboard display &amp;amp; speaker&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;ESP32-S3-Korvo-2 v3.0&lt;/td&gt;
&lt;td&gt;Yes&lt;/td&gt;
&lt;td&gt;Yes&lt;/td&gt;
&lt;td&gt;Includes camera, mic, LCD, and speaker for full two-way A/V&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;On the XIAO board, calling &lt;code&gt;startSubscribeVideo()&lt;/code&gt; or &lt;code&gt;startSubscribeAudio()&lt;/code&gt; returns &lt;code&gt;DEVICE_NOT_SUPPORTED&lt;/code&gt;. That is expected behavior for missing hardware, not a bug. Pick the Korvo-2 if you want the board itself to display and play back the far end.&lt;/p&gt;

&lt;p&gt;Prerequisites:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;&lt;a href="https://docs.espressif.com/projects/esp-idf/en/stable/esp32s3/get-started/index.html" rel="noopener noreferrer"&gt;ESP-IDF 5.4.4 or newer&lt;/a&gt;&lt;/strong&gt; with the environment exported. The component declares 5.4.4 as its minimum.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Python 3.11+&lt;/strong&gt;, required by the ESP-IDF build tools. &lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;8 MB of flash and PSRAM&lt;/strong&gt; on the board. The application image does not fit in 4 MB.&lt;/li&gt;
&lt;li&gt;A &lt;strong&gt;VideoSDK account&lt;/strong&gt; for your API key, secret, and room tokens.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  How ESP32 Video Calling Works Under the Hood
&lt;/h2&gt;

&lt;p&gt;Running WebRTC on an ESP32 is a memory problem before it is a CPU problem. The WebRTC stack, the DTLS handshake state, video frames, and audio buffers all compete for internal SRAM, which is why supported boards carry external PSRAM and why the SDK depends on it for stable operation.&lt;/p&gt;

&lt;p&gt;WebRTC security runs end to end. The device performs a DTLS handshake and transmits media over encrypted SRTP streams, the same transport a browser uses.&lt;/p&gt;

&lt;p&gt;Receiving is where the SDK saves the most work. Publishing is comparatively simple, but subscribing means decoding incoming video and audio, absorbing network jitter, drawing to an LCD, and driving speaker hardware in real time inside tight SRAM limits. On the ESP32-S3-Korvo-2, the publish and subscribe calls for both audio and video run concurrently.&lt;/p&gt;

&lt;p&gt;Wi-Fi quality shows up directly in frame rate and audio clarity. Keep the antenna clear, connect to 2.4 GHz, and test on the network the hardware will actually run on in production.&lt;/p&gt;

&lt;h3&gt;
  
  
  When Not to Use the IoT SDK
&lt;/h3&gt;

&lt;p&gt;Espressif ships its own &lt;a href="https://github.com/espressif/esp-webrtc-solution" rel="noopener noreferrer"&gt;esp-webrtc-solution&lt;/a&gt;, and it wins in a specific case: you already run your own signaling server and media infrastructure, or you need to peer directly with a device that is not in a VideoSDK room. The IoT SDK assumes VideoSDK rooms and VideoSDK tokens, which is exactly the assumption that removes the backend work. If you want the board on an existing SFU you operate yourself, the managed path is the wrong trade.&lt;/p&gt;

&lt;h2&gt;
  
  
  Step 1: Set Up the ESP-IDF Environment
&lt;/h2&gt;

&lt;p&gt;Install Espressif's ESP-IDF toolchain. The commands below cover macOS; see the official &lt;a href="https://docs.espressif.com/projects/esp-idf/en/stable/esp32s3/get-started/index.html" rel="noopener noreferrer"&gt;ESP-IDF getting started guide&lt;/a&gt; for Linux and Windows.&lt;/p&gt;

&lt;p&gt;Install build dependencies:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;brew &lt;span class="nb"&gt;install &lt;/span&gt;cmake ninja dfu-util ccache git wget flex bison gperf
brew &lt;span class="nb"&gt;install &lt;/span&gt;openssl libffi
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Clone ESP-IDF at v5.4.4 or newer and run the installer. Older branches will not build this component:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;&lt;span class="nb"&gt;mkdir&lt;/span&gt; &lt;span class="nt"&gt;-p&lt;/span&gt; ~/esp &lt;span class="o"&gt;&amp;amp;&amp;amp;&lt;/span&gt; &lt;span class="nb"&gt;cd&lt;/span&gt; ~/esp
git clone &lt;span class="nt"&gt;--recursive&lt;/span&gt; &lt;span class="nt"&gt;-b&lt;/span&gt; v5.4.4 https://github.com/espressif/esp-idf.git
&lt;span class="nb"&gt;cd &lt;/span&gt;esp-idf
./install.sh esp32s3
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Export the environment variables into your shell session:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;&lt;span class="nb"&gt;source&lt;/span&gt; ~/esp/esp-idf/export.sh
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  Step 2: Generate Your VideoSDK Token
&lt;/h2&gt;

&lt;p&gt;VideoSDK uses token-based authentication. For building and testing you do not need a signing server: the dashboard generates a token for you in about a minute.&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Open the &lt;a href="https://dub.sh/X5Fn46e?utm_source=esp32-video-calling-videosdk-iot-sdk" rel="noopener noreferrer"&gt;VideoSDK dashboard&lt;/a&gt; and sign up or log in.&lt;/li&gt;
&lt;li&gt;Copy your &lt;strong&gt;API key&lt;/strong&gt; and &lt;strong&gt;secret&lt;/strong&gt;.&lt;/li&gt;
&lt;li&gt;Generate a &lt;strong&gt;temporary token&lt;/strong&gt; and save it.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fz1kz4ebnftbbgvesgb73.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fz1kz4ebnftbbgvesgb73.png" alt="Generate a API key" width="800" height="481"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;You also need a room (meeting) ID, and the order here matters. The React client in Step 7 mints one for you when you click &lt;strong&gt;New Meeting&lt;/strong&gt;, and that is the ID you flash onto the board.&lt;/p&gt;

&lt;p&gt;Firmware is harder to rotate than a web bundle, so a long-lived token flashed into a device is a liability. The &lt;a href="https://docs.videosdk.live/react/guide/video-and-audio-calling-api-sdk/authentication-and-token" rel="noopener noreferrer"&gt;VideoSDK authentication and token guide&lt;/a&gt; covers token lifetimes and permission scopes.&lt;/p&gt;

&lt;h2&gt;
  
  
  Step 3: Create the Project From the Example
&lt;/h2&gt;

&lt;p&gt;Fetch the project structure from the official &lt;a href="https://components.espressif.com/components/videosdk/iot-sdk" rel="noopener noreferrer"&gt;&lt;code&gt;video_call&lt;/code&gt;&lt;/a&gt; example, then extend it to carry audio as well.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;idf.py create-project-from-example &lt;span class="s2"&gt;"videosdk/iot-sdk=0.3.1:video_call"&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;The stock &lt;code&gt;video_call&lt;/code&gt; example captures camera input and draws incoming video on supported hardware such as the ESP32-S3-Korvo-2, running with &lt;code&gt;videoCodec = VIDEO_CODEC_JPEG&lt;/code&gt;. Step 5 adds the audio streams.&lt;/p&gt;

&lt;h2&gt;
  
  
  Step 4: Configure the Build
&lt;/h2&gt;

&lt;p&gt;Set the target chip to &lt;code&gt;esp32s3&lt;/code&gt; and open menuconfig to enter credentials and Wi-Fi settings.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;idf.py set-target esp32s3
idf.py menuconfig
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fmcr6qklxhg63pziu4eat.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fmcr6qklxhg63pziu4eat.png" alt="menuconfig interface" width="800" height="579"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;In the menuconfig interface:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Microcontroller board:&lt;/strong&gt; Select &lt;code&gt;ESP32-S3-Korvo-2&lt;/code&gt; or &lt;code&gt;ESP32-S3-XIAO&lt;/code&gt; (XIAO is the default).&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;VideoSDK Configuration:&lt;/strong&gt; Paste the token and the meeting / room ID. If you are following the repo flow, get the room ID from the React client in Step 7 first, then come back here.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Example Connection Configuration:&lt;/strong&gt; Enter your 2.4 GHz Wi-Fi SSID and password.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Flash and Partitions:&lt;/strong&gt; Set flash size to 8 MB and keep the partition table the example ships.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Keep &lt;code&gt;sdkconfig&lt;/code&gt; out of public repositories. It holds your Wi-Fi credentials and your VideoSDK token in plain text.&lt;/p&gt;

&lt;h2&gt;
  
  
  Step 5: Understand the Code
&lt;/h2&gt;

&lt;p&gt;The firmware flow connects to Wi-Fi, fills an &lt;code&gt;init_config_t&lt;/code&gt; structure, calls &lt;code&gt;init()&lt;/code&gt;, and starts the media streams. The example ships as a video-only call, so its &lt;code&gt;app_main&lt;/code&gt; sets only the video codec and starts only the two video streams:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight c"&gt;&lt;code&gt;&lt;span class="cp"&gt;#include&lt;/span&gt; &lt;span class="cpf"&gt;"videosdk.h"&lt;/span&gt;&lt;span class="cp"&gt;
#include&lt;/span&gt; &lt;span class="cpf"&gt;"sdkconfig.h"&lt;/span&gt;&lt;span class="cp"&gt;
&lt;/span&gt;
&lt;span class="kt"&gt;void&lt;/span&gt; &lt;span class="nf"&gt;app_main&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="kt"&gt;void&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;span class="p"&gt;{&lt;/span&gt;
    &lt;span class="c1"&gt;// Initialize NVS, network interfaces, event loops, and Wi-Fi...&lt;/span&gt;

    &lt;span class="n"&gt;init_config_t&lt;/span&gt; &lt;span class="n"&gt;cfg&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
        &lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;meetingID&lt;/span&gt;     &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;CONFIG_VIDEOSDK_MEETING_ID&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
        &lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;token&lt;/span&gt;         &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;CONFIG_VIDEOSDK_TOKEN&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
        &lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;displayName&lt;/span&gt;   &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="s"&gt;"ESP32S3-AV-Device"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
        &lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;participantId&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="s"&gt;""&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
        &lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;audioCodec&lt;/span&gt;    &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;AUDIO_CODEC_PCMA&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
        &lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;videoCodec&lt;/span&gt;    &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;VIDEO_CODEC_JPEG&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="c1"&gt;// Video only, as shipped&lt;/span&gt;
    &lt;span class="p"&gt;};&lt;/span&gt;

    &lt;span class="k"&gt;if&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;init&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="o"&gt;&amp;amp;&lt;/span&gt;&lt;span class="n"&gt;cfg&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="o"&gt;!=&lt;/span&gt; &lt;span class="n"&gt;RESULT_OK&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
        &lt;span class="k"&gt;return&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
    &lt;span class="p"&gt;}&lt;/span&gt;

    &lt;span class="n"&gt;startPublishVideo&lt;/span&gt;&lt;span class="p"&gt;();&lt;/span&gt;     &lt;span class="c1"&gt;// Stream the onboard camera&lt;/span&gt;
    &lt;span class="n"&gt;startSubscribeVideo&lt;/span&gt;&lt;span class="p"&gt;();&lt;/span&gt;   &lt;span class="c1"&gt;// Draw to the LCD (Korvo-2 only)&lt;/span&gt;

    &lt;span class="k"&gt;while&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="mi"&gt;1&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
        &lt;span class="n"&gt;vTaskDelay&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;pdMS_TO_TICKS&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="mi"&gt;10&lt;/span&gt;&lt;span class="p"&gt;));&lt;/span&gt;
    &lt;span class="p"&gt;}&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;To turn this into a full audio and video call, add audio yourself. It is just one change. Start the two audio streams alongside the video ones:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight c"&gt;&lt;code&gt;    &lt;span class="n"&gt;init_config_t&lt;/span&gt; &lt;span class="n"&gt;cfg&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
        &lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;meetingID&lt;/span&gt;     &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;CONFIG_VIDEOSDK_MEETING_ID&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
        &lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;token&lt;/span&gt;         &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;CONFIG_VIDEOSDK_TOKEN&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
        &lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;displayName&lt;/span&gt;   &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="s"&gt;"ESP32S3-AV-Device"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
        &lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;participantId&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="s"&gt;""&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
        &lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;audioCodec&lt;/span&gt;    &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;AUDIO_CODEC_PCMA&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
        &lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;videoCodec&lt;/span&gt;    &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;VIDEO_CODEC_JPEG&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
    &lt;span class="p"&gt;};&lt;/span&gt;

    &lt;span class="c1"&gt;// ...after init() returns RESULT_OK:&lt;/span&gt;

    &lt;span class="n"&gt;startPublishAudio&lt;/span&gt;&lt;span class="p"&gt;();&lt;/span&gt;     &lt;span class="c1"&gt;// Add: stream the onboard microphone&lt;/span&gt;
    &lt;span class="n"&gt;startPublishVideo&lt;/span&gt;&lt;span class="p"&gt;();&lt;/span&gt;
    &lt;span class="n"&gt;startSubscribeAudio&lt;/span&gt;&lt;span class="p"&gt;();&lt;/span&gt;   &lt;span class="c1"&gt;// Add: play to the speaker (Korvo-2 only)&lt;/span&gt;
    &lt;span class="n"&gt;startSubscribeVideo&lt;/span&gt;&lt;span class="p"&gt;();&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;That gives you all four streams for full A/V. Every SDK function returns a &lt;code&gt;result_t&lt;/code&gt; status code, where &lt;code&gt;RESULT_OK&lt;/code&gt; equals &lt;code&gt;0&lt;/code&gt;. On send-only hardware like the XIAO, &lt;code&gt;startSubscribeAudio()&lt;/code&gt; returns &lt;code&gt;DEVICE_NOT_SUPPORTED&lt;/code&gt;, which is expected. Check return codes in production firmware rather than assuming the stream came up.&lt;/p&gt;

&lt;h2&gt;
  
  
  Step 6: Build, Flash, and Verify the Join
&lt;/h2&gt;

&lt;p&gt;Compile the firmware, flash the board, and open the serial monitor:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;idf.py build
idf.py &lt;span class="nt"&gt;-p&lt;/span&gt; &amp;lt;PORT&amp;gt; flash monitor
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;A successful boot and room join produces this sequence. Values are redacted; yours will show your own network details:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;I (20151) wifi:connected with &amp;lt;YOUR_SSID&amp;gt;, aid = 7, channel 7, BW20, bssid = &amp;lt;REDACTED&amp;gt;
I (20152) wifi:security: WPA2-PSK, phy: bgn, rssi: -49
I (21194) esp_netif_handlers: example_netif_sta ip: &amp;lt;LOCAL_IP&amp;gt;, mask: 255.255.255.0
I (21205) example_common: Connected to example_netif_sta
I (21211) IOT-SDK-AUDIO: Device ID: e-ccba970e9220
I (21215) videosdk: participantId (peerId): e-ccba970e9220
I (21256) IOT-SDK-AUDIO: init: 0
I (23312) protoo: decrypted 4 ICE server(s)
I (23313) protoo: connecting websocket to in1.rm.videosdk.live
I (23562) esp-x509-crt-bundle: Certificate validated
I (24094) protoo: websocket connected
I (24113) protoo: protoo client ready (peerId=e-ccba970e9220)
I (26178) videosdk: using 1 STUN server(s) for ICE
I (29220) peer: Created inbound SRTP session
I (29220) peer: Created outbound SRTP session
I (29474) videosdk: DataChannel transport up (ICE+DTLS)
I (29534) videosdk: SCTP data channel connected after 60 ms
I (29807) videosdk: audio RTP producer id=4bb13f4c-b453-4445-8924-ab09215dfd1b
I (29807) videosdk: bringing up mic
Result:0
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;The two lines that matter are &lt;code&gt;Created outbound SRTP session&lt;/code&gt; and the &lt;code&gt;RTP producer id&lt;/code&gt;. Together they confirm the DTLS handshake completed and the board is publishing. A few &lt;code&gt;example_connect: Wi-Fi disconnected, trying to reconnect...&lt;/code&gt; lines before the association are normal on a busy 2.4 GHz channel.&lt;/p&gt;

&lt;h2&gt;
  
  
  Step 7: Join the Same Room From a React App
&lt;/h2&gt;

&lt;p&gt;Nothing about the web side is ESP32-specific, which is the point: the board is just another participant. VideoSDK publishes a companion repository, &lt;a href="https://github.com/videosdk-live/videosdk-rtc-iot-sdk-example" rel="noopener noreferrer"&gt;videosdk-live/videosdk-rtc-iot-sdk-example&lt;/a&gt;, that carries the firmware under &lt;code&gt;IoT/&lt;/code&gt; and two ready-to-run browser clients under &lt;code&gt;web/js&lt;/code&gt; (vanilla JavaScript) and &lt;code&gt;web/react&lt;/code&gt;. Both talk to the same room, so pick whichever matches your stack. This guide uses the React client.&lt;/p&gt;

&lt;p&gt;Clone the repository and install the client:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;git clone https://github.com/videosdk-live/videosdk-rtc-iot-sdk-example.git
&lt;span class="nb"&gt;cd &lt;/span&gt;videosdk-rtc-iot-sdk-example/web/react
npm &lt;span class="nb"&gt;install&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Create the environment file and drop in the token from Step 2:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;&lt;span class="nb"&gt;cp&lt;/span&gt; .env.example .env
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;





&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;REACT_APP_VIDEOSDK_TOKEN=&amp;lt;your token&amp;gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;The token must carry the &lt;code&gt;allow_join&lt;/code&gt; permission. Create React App inlines &lt;code&gt;.env&lt;/code&gt; at build time, so restart the dev server after any change to it, otherwise you will keep authenticating with the old value and blame the board.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;npm start
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;The app comes up on &lt;code&gt;http://localhost:3000&lt;/code&gt;. Browsers only grant camera and microphone access on a secure context, and &lt;code&gt;localhost&lt;/code&gt; counts as one, so no TLS setup is needed for local development.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F3lo0rm2ay3bpdhjdva49.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F3lo0rm2ay3bpdhjdva49.png" alt="Joining Screen" width="800" height="481"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Click &lt;strong&gt;New Meeting&lt;/strong&gt;. The app creates the room and shows you the meeting ID. That ID goes into &lt;code&gt;idf.py menuconfig&lt;/code&gt; under &lt;strong&gt;VideoSDK Configuration &amp;gt; Meeting / room ID&lt;/strong&gt; back in Step 4. Reflash the board, and once it joins, the ESP32-S3 appears as its own video tile under the &lt;code&gt;displayName&lt;/code&gt; you set in Step 5.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fdfnfyr2r8dr1w0rtzv2u.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fdfnfyr2r8dr1w0rtzv2u.png" alt="Meeting UI" width="800" height="444"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h3&gt;
  
  
  What the React Client Adds for IoT Participants
&lt;/h3&gt;

&lt;p&gt;&lt;code&gt;MeetingView.js&lt;/code&gt; is an ordinary VideoSDK meeting view built on the same hooks as the &lt;a href="https://docs.videosdk.live/react/guide/video-and-audio-calling-api-sdk/quick-start" rel="noopener noreferrer"&gt;React SDK quickstart&lt;/a&gt;, with no device-specific logic in it. Everything that knows about hardware lives in &lt;code&gt;src/iot&lt;/code&gt;, which is a useful separation to copy if you are bolting device support onto an app you already have.&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Export&lt;/th&gt;
&lt;th&gt;Purpose&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;&amp;lt;IOTBridge /&amp;gt;&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;The one piece that has to be mounted for device support to work&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;&amp;lt;IOTVideoPlayer participantId={id} /&amp;gt;&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;Renders a device participant's video and audio&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;useIOTMessages()&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;Hook for receiving messages sent from the board's data channel&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;sendIOTMessage()&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;Sends a message to the device, 15 KiB maximum per message&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;isIOTDevice()&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;Tells a device participant apart from a browser participant&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;&lt;code&gt;useIOTMessages()&lt;/code&gt; and &lt;code&gt;sendIOTMessage()&lt;/code&gt; are the browser half of the &lt;code&gt;setDataMessageHandler()&lt;/code&gt; and &lt;code&gt;sendMessage()&lt;/code&gt; calls from Step 5. That pairing is what turns a call into a control channel: stream the camera for the human, and send a JSON command over the same connection to move a servo or read a sensor, with no second transport to operate.&lt;/p&gt;

&lt;p&gt;On a Korvo-2, this is also where the loop closes. Your browser webcam draws to the board's LCD and your voice plays through its speaker, while its camera and microphone come back to you in the tile.&lt;/p&gt;

&lt;h3&gt;
  
  
  Common Errors
&lt;/h3&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;&lt;code&gt;DEVICE_NOT_SUPPORTED&lt;/code&gt; on a subscribe call:&lt;/strong&gt; Expected on boards without LCD or speaker output, such as the XIAO. Use a Korvo-2 for playback on the device.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;&lt;code&gt;INIT_NOT_CALLED&lt;/code&gt;:&lt;/strong&gt; A &lt;code&gt;start*&lt;/code&gt; function ran before &lt;code&gt;init()&lt;/code&gt; returned &lt;code&gt;RESULT_OK&lt;/code&gt;. Check the &lt;code&gt;init()&lt;/code&gt; return code before starting streams.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Build fails or the image will not fit:&lt;/strong&gt; Confirm ESP-IDF is on v5.4 or newer, flash size is set to 8 MB, and PSRAM is enabled for the selected board.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Wi-Fi connects but the room join fails:&lt;/strong&gt; Verify the room ID formatting and confirm the token carries &lt;code&gt;allow_join&lt;/code&gt; permission and has not expired.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Board joins but no media arrives:&lt;/strong&gt; Confirm the browser used the same room ID, and check the serial log for &lt;code&gt;Created outbound SRTP session&lt;/code&gt;. Its absence points at the DTLS handshake, usually a blocked UDP path on the network.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  ESP32 Video Calling Glossary
&lt;/h2&gt;

&lt;blockquote&gt;
&lt;p&gt;&lt;strong&gt;Room:&lt;/strong&gt; A VideoSDK meeting space identified by a unique room ID that participants join to share media streams. The ESP32-S3 and your browser join the same room ID, which is what makes them see each other.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Participant:&lt;/strong&gt; Any client connected to a room with its own audio and video streams. The IoT SDK registers the board as a participant with a &lt;code&gt;displayName&lt;/code&gt; and a &lt;code&gt;participantId&lt;/code&gt;.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Meeting Token:&lt;/strong&gt; A JWT authorizing a participant to join a room, generated from the VideoSDK dashboard for testing or minted server-side for production.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;SRTP:&lt;/strong&gt; Secure Real-time Transport Protocol, the encrypted media transport WebRTC uses. The IoT SDK negotiates SRTP keys through a DTLS handshake, so board media is encrypted on the wire exactly as browser media is.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;ESP-IDF component:&lt;/strong&gt; A reusable package in Espressif's IoT Development Framework, resolvable from the component registry. The VideoSDK IoT SDK ships as one, so &lt;code&gt;idf.py&lt;/code&gt; pulls it in as a dependency rather than you vendoring source.&lt;/p&gt;
&lt;/blockquote&gt;

&lt;h2&gt;
  
  
  Frequently Asked Questions
&lt;/h2&gt;

&lt;h3&gt;
  
  
  Can an ESP32 join real-time calls?
&lt;/h3&gt;

&lt;p&gt;Yes. An ESP32-S3 running the VideoSDK IoT SDK connects directly to a VideoSDK room over WebRTC and streams video and audio with browsers, phones, and other devices in real time. The board is a full participant in the room, not a feed proxied through a gateway.&lt;/p&gt;

&lt;h3&gt;
  
  
  Which ESP32 boards are supported?
&lt;/h3&gt;

&lt;p&gt;The IoT SDK targets the ESP32-S3 family. The XIAO ESP32-S3 (Sense) handles camera and microphone transmission, while the ESP32-S3-Korvo-2 v3.0 supports full two-way A/V with its integrated LCD and speaker driver.&lt;/p&gt;

&lt;h3&gt;
  
  
  Does the IoT SDK use standard WebRTC?
&lt;/h3&gt;

&lt;p&gt;Yes. The VideoSDK IoT SDK uses standard WebRTC protocols end to end, establishing encrypted SRTP media channels through DTLS handshakes.&lt;/p&gt;

&lt;h3&gt;
  
  
  Can two ESP32 devices call each other?
&lt;/h3&gt;

&lt;p&gt;Yes. Two-way interactive calling works when both ESP32 devices have media output hardware, such as two ESP32-S3-Korvo-2 boards equipped with speakers and displays. If a send-only board like the XIAO ESP32-S3 is used, it can publish its streams into the room but cannot receive or play back incoming media.&lt;/p&gt;

&lt;h3&gt;
  
  
  Why does the ESP32 send JPEG instead of H.264?
&lt;/h3&gt;

&lt;p&gt;JPEG compresses each frame independently, so it needs no reference frames and far less RAM than a video codec. On the supported boards the camera sensor emits JPEG directly, which keeps the ESP32-S3 out of the encoding path entirely.&lt;/p&gt;

&lt;h3&gt;
  
  
  Is the IoT SDK free to use?
&lt;/h3&gt;

&lt;p&gt;The IoT SDK component is open source under the MIT license. VideoSDK provides a free monthly credit tier covering room connectivity and media routing.&lt;/p&gt;

&lt;h2&gt;
  
  
  Conclusion
&lt;/h2&gt;

&lt;p&gt;ESP32 video calling stops being an infrastructure project once the board can join a managed room directly. The IoT SDK reduces it to a token, a room ID, and four function calls, and the browser side is a repository you clone. The remaining engineering is where it should be: your product's camera placement, power budget, and reconnect behavior.&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;The example repo:&lt;/strong&gt; &lt;a href="https://github.com/videosdk-live/videosdk-rtc-iot-sdk-example" rel="noopener noreferrer"&gt;videosdk-live/videosdk-rtc-iot-sdk-example&lt;/a&gt;, firmware plus React and JavaScript clients&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Free API keys:&lt;/strong&gt; &lt;a href="https://dub.sh/X5Fn46e?utm_source=esp32-video-calling-videosdk-iot-sdk" rel="noopener noreferrer"&gt;VideoSDK dashboard&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;The component:&lt;/strong&gt; &lt;a href="https://components.espressif.com/components/videosdk/iot-sdk" rel="noopener noreferrer"&gt;videosdk/iot-sdk on the Espressif registry&lt;/a&gt;, MIT licensed&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Flash it once and watching a microcontroller appear in a browser participant list is genuinely strange in a good way. What are you building with VideoSDK? Drop a comment, I would love to hear what kind of embedded calling use case you are working on.&lt;/p&gt;

</description>
      <category>webrtc</category>
      <category>esp32</category>
      <category>tutorial</category>
      <category>learning</category>
    </item>
    <item>
      <title>How to Build an Open-Source Google Meet Clone with Claude Code</title>
      <dc:creator>Zishan Ghaniwala</dc:creator>
      <pubDate>Mon, 27 Jul 2026 13:27:53 +0000</pubDate>
      <link>https://dev.to/zishan_vsdk/how-to-build-an-open-source-zoom-clone-with-claude-code-videosdk-4im9</link>
      <guid>https://dev.to/zishan_vsdk/how-to-build-an-open-source-zoom-clone-with-claude-code-videosdk-4im9</guid>
      <description>&lt;blockquote&gt;
&lt;p&gt;To build a Google Meet clone, clone the MIT-licensed &lt;a href="https://github.com/videosdk-community/google-meet-clone" rel="noopener noreferrer"&gt;&lt;code&gt;videosdk-community/google-meet-clone&lt;/code&gt;&lt;/a&gt; repo, run &lt;code&gt;npm install&lt;/code&gt; and &lt;code&gt;npm run dev&lt;/code&gt;, then add a free &lt;code&gt;VIDEOSDK_API_KEY&lt;/code&gt; and &lt;code&gt;VIDEOSDK_SECRET&lt;/code&gt; to &lt;code&gt;.env&lt;/code&gt; for real WebRTC video over VideoSDK's SFU. Claude Code handles the customizing.&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;That is the whole path, and it takes about ten minutes. You start from a complete React video call app: a pixel-accurate Google Meet UI sitting on top of VideoSDK's real WebRTC infrastructure. You clone it, you run it, you make it yours. No real-time video experience needed, no signaling server to write, no TURN infrastructure to rent.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Ffb9ldjeg9fdhkwyys0bi.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Ffb9ldjeg9fdhkwyys0bi.png" alt="Meeting UI" width="800" height="476"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h3&gt;
  
  
  Key Takeaways
&lt;/h3&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;The repo is free and MIT-licensed.&lt;/strong&gt; Clone &lt;code&gt;videosdk-community/google-meet-clone&lt;/code&gt;, run &lt;code&gt;npm install&lt;/code&gt;, and you have the full codebase.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Preview the UI with zero keys.&lt;/strong&gt; A built-in fake mode renders the interface locally so you can click around before signing up for anything.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Two keys unlock real video.&lt;/strong&gt; A free &lt;code&gt;VIDEOSDK_API_KEY&lt;/code&gt; and &lt;code&gt;VIDEOSDK_SECRET&lt;/code&gt; turn it into genuine multi-participant meetings. The server mints tokens for you.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Claude Code does the customizing.&lt;/strong&gt; Ask it to rebrand, add features, or change behavior in plain English.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;One click to deploy.&lt;/strong&gt; A Vercel button ships it to the internet with the two env vars pre-filled.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  What is a Google Meet clone?
&lt;/h2&gt;

&lt;p&gt;A Google Meet clone is defined as a self-hosted video conferencing app that reproduces Google Meet's interface and meeting mechanics on infrastructure you control. It works by pairing a Meet-styled front end with a WebRTC media backend that routes audio and video between participants.&lt;/p&gt;

&lt;p&gt;The hard part was never the UI. It is the media layer: peer negotiation, an SFU to route streams so a five-person call does not melt a laptop, TURN relays for participants behind restrictive firewalls, and signed tokens so a guest cannot grant themselves host powers.&lt;/p&gt;

&lt;p&gt;The &lt;code&gt;videosdk-community/google-meet-clone&lt;/code&gt; repo hands you the UI and delegates that media layer to VideoSDK's SFU, which is why the whole thing fits in one afternoon instead of one quarter. Real-time transport follows the &lt;a href="https://www.w3.org/TR/webrtc/" rel="noopener noreferrer"&gt;W3C WebRTC specification&lt;/a&gt;, so the browser side is standards-based rather than proprietary.&lt;/p&gt;

&lt;p&gt;Most of the competing tutorials in this space stop before that line. The &lt;a href="https://strapi.io/blog/build-a-google-meet-clone-with-strapi5-and-nextjs-part-1" rel="noopener noreferrer"&gt;Strapi 5 and Next.js series&lt;/a&gt; and the popular WebRTC-plus-Socket.io courses have you hand-roll signaling with peer-to-peer connections, which works for two people and degrades badly past four. This guide starts from an SFU, so scaling is not a rewrite.&lt;/p&gt;

&lt;h2&gt;
  
  
  Features the repo ships with
&lt;/h2&gt;

&lt;p&gt;The repo ships the feature set that actually matters in a meeting app, not a video-chat demo with two tiles.&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Real-time HD video and audio over VideoSDK's SFU, so calls scale past two people.&lt;/li&gt;
&lt;li&gt;A grid / gallery view with tiles that resize themselves as the room fills up.&lt;/li&gt;
&lt;li&gt;A pre-join green room with a mirrored camera preview and device pickers.&lt;/li&gt;
&lt;li&gt;Chat with saved history, floating emoji reactions, and raise hand, all synced to late joiners.&lt;/li&gt;
&lt;li&gt;Screen sharing and cloud recording.&lt;/li&gt;
&lt;li&gt;Host controls with a real waiting room: guests knock, and the host admits or removes them.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;It looks like Google Meet because the UI is built from a Figma reference, down to the icons and fonts. It works like Google Meet because the media is real.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fihv8vvob9jtfhz8dsr1b.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fihv8vvob9jtfhz8dsr1b.png" alt="Landing page of the open-source Google Meet clone with a New meeting button and a join-by-code field" width="800" height="476"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  Prerequisites for building the clone
&lt;/h2&gt;

&lt;p&gt;You need very little to start:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Node.js 18 or newer&lt;/strong&gt; (20+ recommended). Check with &lt;code&gt;node -v&lt;/code&gt;.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;git&lt;/strong&gt;, to clone the repo.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;A free VideoSDK account&lt;/strong&gt; for live video. You'll grab the keys in Step 3, so you can skip this until then.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Claude Code&lt;/strong&gt; (optional, but it's the star of Step 4). It's Anthropic's terminal coding agent, documented at &lt;a href="https://docs.claude.com/en/docs/claude-code/overview" rel="noopener noreferrer"&gt;docs.claude.com&lt;/a&gt;.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;That's it. No database, no backend to stand up, no accounts system to wire in.&lt;/p&gt;

&lt;h2&gt;
  
  
  Step 1 - Clone the Google Meet clone repo
&lt;/h2&gt;

&lt;p&gt;Getting the code is two commands and one install, and the lockfile pins every dependency for you.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;git clone https://github.com/videosdk-community/google-meet-clone
&lt;span class="nb"&gt;cd &lt;/span&gt;google-meet-clone
npm &lt;span class="nb"&gt;install&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;This project uses &lt;strong&gt;npm&lt;/strong&gt; as its package manager, so &lt;code&gt;npm install&lt;/code&gt; reads the committed lockfile and pulls everything down: React 19, TypeScript, Vite, and the &lt;code&gt;@videosdk.live/react-sdk&lt;/code&gt;. Give it a minute. &lt;/p&gt;

&lt;p&gt;While that runs, here's the shape of what you cloned. Feature components live under &lt;code&gt;src/routes/&lt;/code&gt; (the landing page, the green room, and the in-call screen). Every call into VideoSDK is hidden behind a single hook layer in &lt;code&gt;src/meeting/&lt;/code&gt;, and the token-signing serverless functions sit in &lt;code&gt;api/&lt;/code&gt;. You rarely need to touch the SDK directly, which is exactly why customizing this is pleasant. If you do want the raw surface, it is the same one documented in the &lt;a href="https://docs.videosdk.live/react/guide/video-and-audio-calling-api-sdk/quick-start" rel="noopener noreferrer"&gt;VideoSDK React quickstart&lt;/a&gt;.&lt;/p&gt;

&lt;h2&gt;
  
  
  Step 2 - Preview the UI in fake mode
&lt;/h2&gt;

&lt;p&gt;You don't need any keys to see the interface. The project ships a &lt;strong&gt;fake mode&lt;/strong&gt; that renders the full UI against a local mock, no camera and no network required.&lt;/p&gt;

&lt;p&gt;Start the dev server:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;npm run dev
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;It serves the app on &lt;code&gt;http://localhost:5173&lt;/code&gt;. Now open a meeting URL with the &lt;code&gt;?fake=ok&lt;/code&gt; switch appended:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;http://localhost:5173/abc-defg-hij?fake=ok
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;You'll first land in the green room, then join into a fully rendered meeting: participant tiles, the control bar, chat, reactions, the works. It's perfect for exploring the layout, tweaking styles, and getting your bearings.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Flfj4jyjpvsxw3ge2weod.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Flfj4jyjpvsxw3ge2weod.png" alt="Pre-join green room with a camera preview, a name field, device pickers, and a Join now button" width="800" height="476"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;One honest caveat: &lt;strong&gt;fake mode is a UI preview, not a real call.&lt;/strong&gt; It uses a built-in fake client with fabricated participants, so nothing goes over the network and no one else can join. It's a developer convenience that's compiled out of production builds entirely. For actual meetings with real people, you need keys, which is the next step.&lt;/p&gt;

&lt;h2&gt;
  
  
  Step 3 - Add real video with VideoSDK keys
&lt;/h2&gt;

&lt;p&gt;Two environment variables turn the UI preview into genuine multi-participant meetings, and neither one ever reaches the browser.&lt;/p&gt;

&lt;p&gt;Head to the &lt;a href="https://dub.sh/X5Fn46e?utm_source=devto_blog&amp;amp;utm_medium=blog&amp;amp;utm_campaign=google_meet_clone" rel="noopener noreferrer"&gt;VideoSDK dashboard&lt;/a&gt; and create a free account. You'll get an &lt;strong&gt;API key&lt;/strong&gt; and a &lt;strong&gt;secret&lt;/strong&gt;.&lt;/p&gt;

&lt;p&gt;Copy the example env file and paste your credentials in:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;&lt;span class="nb"&gt;cp&lt;/span&gt; .env.example .env
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Open the new &lt;code&gt;.env&lt;/code&gt; and fill in the two values:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;VIDEOSDK_API_KEY=your_key
VIDEOSDK_SECRET=your_secret
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Those are the only two variables that matter. Restart the dev server (&lt;code&gt;npm run dev&lt;/code&gt;) and you're live. Click &lt;strong&gt;New meeting&lt;/strong&gt; on the landing page and it creates a real VideoSDK room and makes you its host. Open the meeting link in a second browser or device to join as a guest.&lt;/p&gt;

&lt;p&gt;Two things are worth knowing about how this stays safe. First, &lt;strong&gt;the secret never reaches the browser.&lt;/strong&gt; It's read only by the functions in &lt;code&gt;api/&lt;/code&gt;, and the project deliberately keeps it out of any &lt;code&gt;VITE_&lt;/code&gt;-prefixed variable so it can't get bundled into the client.&lt;/p&gt;

&lt;p&gt;Second, &lt;strong&gt;there's no manual token step.&lt;/strong&gt; When a client joins, the server mints the right meeting token on the spot: a host token if the client holds a valid grant for that room, a guest token otherwise. You paste your key and secret once, and token signing is automatic from then on. The token format and its permission claims are described in the &lt;a href="https://docs.videosdk.live/api-reference/realtime-communication/intro" rel="noopener noreferrer"&gt;VideoSDK authentication docs&lt;/a&gt;.&lt;/p&gt;

&lt;h2&gt;
  
  
  Step 4 - Customize the clone with Claude Code
&lt;/h2&gt;

&lt;p&gt;Claude Code turns customization into a conversation, because every VideoSDK call in this repo already sits behind one hook layer.&lt;/p&gt;

&lt;p&gt;Instead of hunting through files, you describe what you want and let the agent make the change. Run &lt;code&gt;claude&lt;/code&gt; in the project root and try prompts like these. (These are illustrative examples of what you'd ask, not magic incantations. Phrase them however feels natural.)&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Rebrand the colors:&lt;/strong&gt;&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;"The app uses design tokens generated from Figma. Change the primary accent color to a deep purple across the UI, and show me which files you touched."&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;&lt;strong&gt;Add a reaction:&lt;/strong&gt;&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;"The reactions picker in the control bar has a set of emoji. Add a fire emoji to the list so participants can react with it, and make sure it floats up on the tiles like the others."&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;&lt;strong&gt;Tweak the meeting controls:&lt;/strong&gt;&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;"In the in-call control bar, add a keyboard shortcut that toggles the People panel, and show it in the button's tooltip."&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;&lt;strong&gt;Understand before you change:&lt;/strong&gt;&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;"Explain how a guest goes from clicking a meeting link to appearing in the host's waiting room. Trace the path through the code."&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;Point Claude Code at &lt;code&gt;src/routes/&lt;/code&gt; for anything visual and &lt;code&gt;src/meeting/&lt;/code&gt; for anything media-related, and it'll follow the existing patterns rather than reinventing them. Ask, review the diff, run the app, repeat. That loop is the whole workflow.&lt;/p&gt;

&lt;h2&gt;
  
  
  Step 5 - Deploy to Vercel
&lt;/h2&gt;

&lt;p&gt;Deployment is one button because the repo ships nothing that needs configuring, only the two secrets.&lt;/p&gt;

&lt;p&gt;When you're ready to share it, the fastest path is the one-click Vercel button in the repo's README. It clones the project into your own Vercel account and prompts you for the two environment variables (&lt;code&gt;VIDEOSDK_API_KEY&lt;/code&gt; and &lt;code&gt;VIDEOSDK_SECRET&lt;/code&gt;), with a link straight to your API keys.&lt;/p&gt;

&lt;p&gt;Prefer to do it yourself? Build and deploy:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;npm run build
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Then deploy to any host that runs the &lt;code&gt;api/&lt;/code&gt; serverless functions. On Vercel it's zero-config: there's no &lt;code&gt;vercel.json&lt;/code&gt; to write, the functions become endpoints automatically, and the single-page app is served statically. Set the same two env vars in your host's dashboard, and tokens get minted at request time. Nothing is baked into the client, and there's nothing to paste per meeting.&lt;/p&gt;

&lt;h2&gt;
  
  
  Tour of the running meeting app
&lt;/h2&gt;

&lt;p&gt;Three surfaces make up the whole app: a landing page, a green room, and the call itself.&lt;/p&gt;

&lt;p&gt;The &lt;strong&gt;landing page&lt;/strong&gt; (&lt;code&gt;/&lt;/code&gt;) is where you start a meeting or join by code. Click &lt;strong&gt;New meeting&lt;/strong&gt; and it spins up a real room and hands you the host role.&lt;/p&gt;

&lt;p&gt;Every meeting lives at &lt;code&gt;/:meetingId&lt;/code&gt;, and that one route covers both stages. First you hit the &lt;strong&gt;green room&lt;/strong&gt;: type your name, check yourself in the mirrored camera preview, pick your mic and camera, and hit &lt;strong&gt;Join now&lt;/strong&gt;. Then the view swaps in place to the &lt;strong&gt;call itself&lt;/strong&gt;, and the URL never changes, exactly like real Meet.&lt;/p&gt;

&lt;p&gt;Inside the call you get the grid of participant tiles that size themselves to the room, a control bar for mic, camera, screen share, reactions, and raise hand, plus a chat panel that keeps its history so late joiners catch up.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fh4wato7ttgh2h24g8o7i.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fh4wato7ttgh2h24g8o7i.png" alt="In-call view with the chat panel open, showing saved message history from earlier participants" width="800" height="476"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Open the &lt;strong&gt;People&lt;/strong&gt; panel to see who's in, and if you're the host, you get the controls that make it real: a waiting room where guests knock for admission, the ability to mute at the media server, and cloud recording with a live indicator. Host power isn't a hidden button either. It's a server-signed grant, so a guest's client simply doesn't hold the capability.&lt;/p&gt;

&lt;h2&gt;
  
  
  Taking your Google Meet clone to production
&lt;/h2&gt;

&lt;p&gt;Five things change between &lt;code&gt;localhost:5173&lt;/code&gt; and a meeting your users trust, and most clone tutorials never mention any of them.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;HTTPS is not optional.&lt;/strong&gt; Browsers only expose &lt;code&gt;getUserMedia&lt;/code&gt; on secure origins, with &lt;code&gt;localhost&lt;/code&gt; as the single exemption. Deploy behind TLS or the camera never turns on.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;NAT traversal is already handled, and that is the point.&lt;/strong&gt; Roughly one in five WebRTC connections cannot be established peer-to-peer and needs a TURN relay. Because media here goes through VideoSDK's SFU, you inherit its ICE and relay infrastructure instead of standing up and paying for &lt;code&gt;coturn&lt;/code&gt;.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Token lifetime needs a decision.&lt;/strong&gt; The functions in &lt;code&gt;api/&lt;/code&gt; mint short-lived meeting tokens per join. If you extend the app with long meetings or reconnect flows, decide what happens when a token expires mid-call, and refresh rather than dropping the participant.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Recordings need a home.&lt;/strong&gt; Cloud recording writes to VideoSDK storage by default. For anything with a retention or residency requirement, wire the recording webhook to your own bucket and record where that data may legally live.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;SPA fallback breaks deep links if you forget it.&lt;/strong&gt; Meeting URLs are client-side routes. On Vercel this is automatic; on Nginx, S3, or any static host, add a catch-all rewrite to &lt;code&gt;index.html&lt;/code&gt; or &lt;code&gt;/:meetingId&lt;/code&gt; returns a 404 to every invited guest.&lt;/p&gt;

&lt;h2&gt;
  
  
  How does this Google Meet clone compare to Google Meet?
&lt;/h2&gt;

&lt;p&gt;This clone matches Google Meet's UI and meeting mechanics, and deliberately skips the accounts-and-history backend behind it.&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Capability&lt;/th&gt;
&lt;th&gt;This clone&lt;/th&gt;
&lt;th&gt;Google Meet&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;HD video, audio, screen share&lt;/td&gt;
&lt;td&gt;Yes, over VideoSDK's SFU&lt;/td&gt;
&lt;td&gt;Yes&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Chat, reactions, raise hand&lt;/td&gt;
&lt;td&gt;Yes, synced to late joiners&lt;/td&gt;
&lt;td&gt;Yes&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Waiting room and host controls&lt;/td&gt;
&lt;td&gt;Yes, server-signed grants&lt;/td&gt;
&lt;td&gt;Yes&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Cloud recording&lt;/td&gt;
&lt;td&gt;Yes&lt;/td&gt;
&lt;td&gt;Yes, on paid Workspace tiers&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Identity and accounts&lt;/td&gt;
&lt;td&gt;A name you type&lt;/td&gt;
&lt;td&gt;Google account&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Calendar and meeting history&lt;/td&gt;
&lt;td&gt;Not included&lt;/td&gt;
&lt;td&gt;Yes&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Source code and self-hosting&lt;/td&gt;
&lt;td&gt;MIT, fully yours&lt;/td&gt;
&lt;td&gt;Closed, hosted only&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;The verdict is conditional. Use Google Meet when you want meetings to just exist for a team that already lives in Google Workspace. Build on this clone when video needs to sit inside your own product, carry your branding, and follow your own permission model. It is a starting point for a product, not a replacement for a hosted meeting service.&lt;/p&gt;

&lt;h2&gt;
  
  
  Definitions glossary for meeting apps
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Room&lt;/strong&gt; - the VideoSDK unit a meeting happens in. Participants join a room by ID, and every media stream is scoped to it. Here, the room ID is the &lt;code&gt;/:meetingId&lt;/code&gt; in the URL.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Participant&lt;/strong&gt; - one connected client in a room, carrying its own audio, video, and screen-share tracks plus a role that decides what it may do.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Meeting token&lt;/strong&gt; - a short-lived signed credential granting a client permission to join a specific room, minted server-side in &lt;code&gt;api/&lt;/code&gt; from your API key and secret.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;SFU (Selective Forwarding Unit)&lt;/strong&gt; - a media server that receives each participant's stream once and forwards it to the others, so upload cost stays flat as the room grows.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Prebuilt UI Kit&lt;/strong&gt; - VideoSDK's drop-in meeting interface, embeddable as an iframe or React component when you want a working call without building the UI at all.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Frequently asked questions about Google Meet clones
&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;Do I need a VideoSDK account to build a Google Meet clone with this repo?&lt;/strong&gt;&lt;br&gt;
For real meetings, yes, and it's free. You need a &lt;code&gt;VIDEOSDK_API_KEY&lt;/code&gt; and &lt;code&gt;VIDEOSDK_SECRET&lt;/code&gt; from the &lt;a href="https://dub.sh/X5Fn46e?utm_source=devto_blog&amp;amp;utm_medium=blog&amp;amp;utm_campaign=google_meet_clone" rel="noopener noreferrer"&gt;dashboard&lt;/a&gt;. To just explore the UI, no: fake mode (&lt;code&gt;?fake=ok&lt;/code&gt;) runs with no keys at all.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Is the keyless run a real call?&lt;/strong&gt;&lt;br&gt;
No, the keyless run is not a real call. Fake mode is a local UI preview using a built-in mock client. It's great for design work and clicking through the interface, but nobody can actually join and nothing goes over the network. Add the two keys for genuine multi-participant video.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Is this Google Meet clone really free and open source?&lt;/strong&gt;&lt;br&gt;
Yes, it is genuinely free and open source. The repo is released under the &lt;a href="https://opensource.org/license/mit" rel="noopener noreferrer"&gt;MIT License&lt;/a&gt;, so you're free to use, modify, self-host, and build a commercial product on top of it.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Can I self-host it instead of using Vercel?&lt;/strong&gt;&lt;br&gt;
Yes, you can self-host it anywhere that runs Node functions. Set &lt;code&gt;VIDEOSDK_API_KEY&lt;/code&gt; and &lt;code&gt;VIDEOSDK_SECRET&lt;/code&gt; as environment variables, run &lt;code&gt;npm run build&lt;/code&gt;, and deploy the &lt;code&gt;api/&lt;/code&gt; functions alongside the static build. On static-only hosts, add an SPA fallback so meeting deep-links load instead of 404ing.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Do I have to write token-minting code?&lt;/strong&gt;&lt;br&gt;
No, you do not write any token-minting code. The server mints host and guest tokens per request from your key and secret. There's nothing to sign by hand and no token script to run.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;How many participants can a meeting hold?&lt;/strong&gt;&lt;br&gt;
Capacity is set by VideoSDK's SFU rather than the UI, so the grid layout is the practical limit long before the media layer is. Check your plan's concurrency limits before promising a number.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Can I build a Zoom clone the same way?&lt;/strong&gt;&lt;br&gt;
Yes, the same architecture applies. Swap the Meet-styled components in &lt;code&gt;src/routes/&lt;/code&gt; for your own layout and keep the &lt;code&gt;src/meeting/&lt;/code&gt; hook layer untouched, since the media logic is UI-agnostic.&lt;/p&gt;

&lt;h2&gt;
  
  
  Conclusion and next steps
&lt;/h2&gt;

&lt;p&gt;You're a few commands away from your own open-source Google Meet clone, running on real WebRTC infrastructure rather than a demo signaling server.&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;Try it live&lt;/strong&gt; on &lt;a href="https://google-meet-clone-by-videosdk.vercel.app/" rel="noopener noreferrer"&gt;google-meet-clone-by-videosdk.vercel.app&lt;/a&gt;, the deployed demo you can open right now.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Fork&lt;/strong&gt; &lt;a href="https://github.com/videosdk-community/google-meet-clone" rel="noopener noreferrer"&gt;&lt;code&gt;videosdk-community/google-meet-clone&lt;/code&gt;&lt;/a&gt; and &lt;code&gt;npm install&lt;/code&gt;.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Grab free keys&lt;/strong&gt; from the &lt;a href="https://dub.sh/X5Fn46e?utm_source=devto_blog&amp;amp;utm_medium=blog&amp;amp;utm_campaign=google_meet_clone" rel="noopener noreferrer"&gt;VideoSDK dashboard&lt;/a&gt; and drop them in &lt;code&gt;.env&lt;/code&gt;.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Open Claude Code&lt;/strong&gt; and start shaping it into your product.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;From there, the natural next steps are the &lt;a href="https://docs.videosdk.live/react/guide/video-and-audio-calling-api-sdk/quick-start" rel="noopener noreferrer"&gt;VideoSDK React quickstart&lt;/a&gt; if you want to understand the hook layer, the &lt;a href="https://docs.videosdk.live/prebuilt/guide/prebuilt-video-and-audio-calling/quick-start" rel="noopener noreferrer"&gt;Prebuilt UI Kit&lt;/a&gt; if you'd rather skip UI work entirely on your next app, and &lt;a href="https://docs.videosdk.live/react/guide/video-and-audio-calling-api-sdk/quick-start-react-ils" rel="noopener noreferrer"&gt;interactive live streaming&lt;/a&gt; if your product needs an audience larger than a meeting.&lt;/p&gt;

&lt;p&gt;Real video, a polished UI, and an AI agent to do the heavy lifting. What are you building on top of it?&lt;/p&gt;

</description>
      <category>opensource</category>
      <category>claude</category>
      <category>beginners</category>
      <category>react</category>
    </item>
  </channel>
</rss>
