client/webrtc.js
// creates a button for master to close a client's feed 

creates a button for master to close a client's feed
creates a button for master to close a client ' s feed
function closePeer(peerUuid){
  var myDiv = document.getElementById("GFG");
  var button = document.createElement('BUTTON');
  button.setAttribute('id', "closing"); 
  var text = document.createTextNode("Close Feed"); 
  button.appendChild(text); 
  myDiv.appendChild(button);
  var closeButton = document.getElementById("closing");
  closeButton.onclick = function(){
    peerConnections[peerUuid].pc.close()
    delete peerConnections[peerUuid];
  };
}
function closePeer ( peerUuid ) { var myDiv = document . getElementById ( "GFG" ) ; var button = document . createElement ( 'BUTTON' ) ; button . setAttribute ( 'id' , "closing" ) ; var text = document . createTextNode ( "Close Feed" ) ; button . appendChild ( text ) ; myDiv . appendChild ( button ) ; var closeButton = document . getElementById ( "closing" ) ; closeButton . onclick = function ( ) { peerConnections [ peerUuid ] . pc . close ( ) delete peerConnections [ peerUuid ] ; } ; }
creates a button for master to close a client's feed
creates a button for master to close a client ' s feed
// creating button element  
 // creating text to be 
 //displayed on button 
 // appending text to button 
 // appending button to div 
