A minimal Node.js WebSocket server for WebRTC signaling (offer/answer/ICE).
Designed to pair with the Android WebRTC Video Call App.
This is a simple signaling server that uses WebSockets (via the ws
library) to relay WebRTC SDP offers, answers, and ICE candidates between two peers in the same “room.” It handles room creation, broadcasting of messages, and cleans up when peers leave.
- 🔌 WebSocket-based signaling
- 💬 Room management for pairing exactly two peers
- 🔄 Broadcasts
offer
,answer
, andcandidate
messages - 🗑️ Cleans up rooms when peers disconnect
- Node.js v14 or higher
- npm (bundled with Node.js)
git clone https://github.com/miraljaviya/WebRTCLocalServer.git
cd WebRTCLocalServer
npm install
node index.js
You will see a log in your terminal indicating the server has started, for example: Signaling server running on ws://0.0.0.0:8080
Android Client: Android WebRTC Video Call App https://github.com/miraljaviya/LocalVideoCallWebRTC A Kotlin-based Android application demonstrating peer-to-peer video calling with WebRTC.