7.0.2 • Public • Published

MultiRTC / A Demo application for RTCMultiConnection.js!

  1. Source Code:
  2. Similar Demo:
  3. RTCMultiConnection.js:
// Dependencies: 
// 1) socket (npm install websocket)
// 2) node-static (npm install node-static)

npm install multirtc

// to run it!
cd node_modules/multirtc/ && node signaler.js

Now, both WebSocket and HTTPs servers are running at port 12034:




This MultiRTC Demo is using WebSockets over Nodejs for signaling and presence detection!

You can easily use any signaling implementation; whether it is or XHR-Long polling or SIP/XMPP or WebSync/SignalR etc. Read more here!

Follow these steps to use other signaling servers:

  1. Cut code from "public" directory and paste in a unique directory.
  2. Now, open ui.peer-connection.js and go to line 14. You can override your own openSignalingChannel.
  3. Now, open ui.main.js and go to line 94. You can easily change websocket to or any other implementation.

and that's it!


What is MultiRTC?

  1. It is a skype-like demo using WebRTC for realtime connections!
  2. It allows you enable/disable webcams; and join with or without webcams!
  3. It allows you share screen using existing peer connections!
  4. It allows you share files with preview and download links!
  5. It allows you auto translate incoming messages in your own language!
  6. It gives you full control over bandwidth and screen resolutions!
  7. It allows you adjust file sharing speed yourself by setting chunk-size and chunk-intervals!
  8. It allows you test all WebRTC features by enabling/disabling some check-boxes!

Demo here:


How it works?

  1. It opens WebRTC data connection same like Skype!
  2. Multiple users can join same room; text chat and share multiple files concurrently!
  3. Choose your own URL! Users from one room can't access data or join users from other rooms.
  4. Anyone can add any media stream any-time! Whether it is screen; or audio/video.
  5. An advance settings section allows you customize many RTCMultiConnection features in one place!

It is an All-in-One solution for RTCMultiConnection.js!


Presence Detection!

Presence detection is handled by websocket-over-nodejs! Open ui.main.js file and go to line 79.

// use "channel" as sessionid or use custom sessionid!
var roomid =;
var SIGNALING_SERVER = 'wss://';
var websocket = new WebSocket(SIGNALING_SERVER);
websocket.onmessage = function (event) {
    var data = JSON.parse(;
    if (data.isChannelPresent == false) {;
    } else {
websocket.onopen = function () {
        checkPresence: true,
        channel: roomid


websocket-over-nodejs for signaling!

Open ui.peer-connection.js and go to line 15.

// wss://
// ws://
// wss://
var SIGNALING_SERVER = 'wss://';
connection.openSignalingChannel = function(config) { = ||;
    var websocket = new WebSocket(SIGNALING_SERVER); =;
    websocket.onopen = function() {
            open: true,
        if (config.callback)
    websocket.onmessage = function(event) {
    websocket.push = websocket.send;
    websocket.send = function(data) {
            data: data,



RTCMultiConnection.js WebRTC Library is released under MIT licence . Copyright (c) Muaz Khan.

Package Sidebar


npm i multirtc

Weekly Downloads






Last publish


  • muaz-khan