requires/publisher.js
function(ob){

            var identifier = ob.identifier || '';
            var clientId = ob.clientId;
            var socketId = ob.socketId;
            var junctionId = ob.junctionId;
            var user = ob.user || {};

            if(!!identifier && !!clientId && !!socketId && !!junctionId){
                var lis = this.junctions;
                var r = false;
                if(lis.length>0){
                    for(var i=0;i<lis.length;i++){
                        var c = lis[i];
                        if(c.identifier==identifier && c.clientId==clientId && c.socketId==socketId){
                            r = true;
                            break;
                        }
                    }
                }
                if(!r){
                    var junc = {
                        identifier : identifier,
                        clientId : clientId,
                        socketId : socketId,
                        junctionId : junctionId,
                        user : user,
                    }
                    if(!lastAddedJunction || lastAddedJunction!=junc){
                        lastAddedJunction = junc;
                        this.junctions.push(junc);
                        this.Event.onAddJunction(junc, user);
                    }
                }
            }
        }
function(ob){

            var identifier = ob.identifier || '';
            var clientId = ob.clientId;
            var socketId = ob.socketId;
            var junctionId = ob.junctionId;
            var user = ob.user || {};

            if(!!identifier && !!clientId && !!socketId && !!junctionId){
                var lis = this.junctions;
                var r = false;
                if(lis.length>0){
                    for(var i=0;i<lis.length;i++){
                        var c = lis[i];
                        if(c.identifier==identifier && c.clientId==clientId && c.socketId==socketId){
                            r = true;
                            break;
                        }
                    }
                }
                if(!r){
                    var junc = {
                        identifier : identifier,
                        clientId : clientId,
                        socketId : socketId,
                        junctionId : junctionId,
                        user : user,
                    }
                    if(!lastAddedJunction || lastAddedJunction!=junc){
                        lastAddedJunction = junc;
                        this.junctions.push(junc);
                        this.Event.onAddJunction(junc, user);
                    }
                }
            }
        }
Methods to handle junctions
*