code: function init()
      {
          scope._servConn = new ConnectaSocket(scope._url,scope._reconnect,scope._encode);
          scope._servConn.onConnected = function(e)
          {
              scope.id = e;
              scope.dispatchEvent("connected");
          }
          scope._servConn.onError   = function(e)
          {
              scope.dispatchEvent("error",e);
          }
          scope._servConn.onClose = function(e)
          {
              scope.dispatchEvent("close");
              scope.closePeers();
          }
  
          scope._servConn.onJoinedRoom	   = onJoinedRoom;
          scope._servConn.onClientJoinedRoom = onClientJoinedRoom;
          scope._servConn.onLeftRoom         = onLeftRoom;
          scope._servConn.onClientLeftRoom   = onClientLeftRoom;
          scope._servConn.onSDPDescription   = onSDPDescription;
          scope._servConn.onIceCandidate     = onIceCandidate;
          scope._servConn.onRTCFallback      = onRTCFallback;
          scope._servConn.onMessage          = onServerMessage;
          scope._servConn.onBytesMessage     = onServerByteArray;
  
          window.addEventListener("beforeunload", function (event) 
          {
              scope.dispose();
          });
      }
docs: init acts as constructor