SPA stands for Single-Page Application.
SPAs are web applications that load a single HTML page and dynamically update content using JavaScript. Popular SPA frameworks include React, Angular, and Vue.js.
SPAs and WebRTC
WebRTC applications are commonly built as SPAs because:
- Persistent state: WebRTC PeerConnections and media streams persist in JavaScript memory – full page reloads would destroy active connections
- Dynamic UI: Video layouts, participant lists, and call controls need real-time updates without page navigation
- WebSocket signaling: The signaling connection stays open throughout the session


