Searching for a single WebRTC Library supporting everything?

RTCMultiConnection is a WebRTC JavaScript wrapper library runs top over RTCPeerConnection API to provide multi-session establishment scenarios. It also provides dozens of features as hybrid-less mesh networking model, a reliable presence detection and syncing system; complex renegotiation scenarios; and much more. It provides everything you've in your mind! Just understand the API and you'll enjoy using it! It is simple and its syntax is similar as WebSockets JavaScript API and RTCPeerConnection API.

It is MIT Licensed, which means that you can use it in any commercial/non-commercial product, free of cost.
List of All Demos

Link The Library (Source Code)

Common Code (Quick Simple Demo)

var MODERATOR_CHANNEL_ID = 'ABCDEF'; // channel-id
var MODERATOR_SESSION_ID = 'XYZ';    // room-id
var MODERATOR_ID         = 'JKL';    // user-id
var MODERATOR_SESSION    = {         // media-type
    audio: true,
    video: true
var MODERATOR_EXTRA      = {};       // empty extra-data

Code for Room Moderator (i.e. Initiator)

var moderator     = new RTCMultiConnection(MODERATOR_CHANNEL_ID);
moderator.session = MODERATOR_SESSION;
moderator.userid  = MODERATOR_ID;
moderator.extra   = MODERATOR_EXTRA;{
    dontTransmit: true,
    sessionid:    MODERATOR_SESSION_ID

Code for Room Participants

var participants = new RTCMultiConnection(MODERATOR_CHANNEL_ID);
    sessionid: MODERATOR_SESSION_ID,
    userid:    MODERATOR_ID,
    extra:     MODERATOR_EXTRA,
    session:   MODERATOR_SESSION

(optional) Handle how to get streams

// same code can be used for participants
// (it is optional) 
connection.onstreamid = function(event) {
    // got a clue of incoming remote stream
    // didn't get remote stream yet
    var incoming_stream_id = event.streamid;;
    // or;

// same code can be used for participants
// it is useful
connection.onstream = function(event) {
    // got local or remote stream
    // if(event.type == 'local')  {}
    // if(event.type == 'remote') {}
    // or YOUR_VIDEO.src = event.blobURL;
    // or YOUR_VIDEO.src = URL.createObjectURL(;

// same code can be used for participants
// it is useful but optional
connection.onstreamended = function(event) {
Getting Started Guide