code: function CollabSocket(hubUrl, sessionId) {
          var self = this;
  		
  		this.socket = io.connect( hubUrl+ "?sessionId=" +sessionId, { path: "/socket.io/" });
  
          this.socket.on('connect', function() {
              self.dispatchEvent({
                  type: 'ready'
              });
          });
          
          this.socket.on('disconnect', function() {
              self.dispatchEvent({
                  type: 'close'
              });
          });
          
          this.socket.on('error', function(e) {
             self.dispatchEvent({
                  type: 'error',
                  error: e
              });
              console.error(e);
          });
  
          this.socket.on('message', function(data) {
              self.dispatchEvent({
                  type: 'message',
                  data: data
              });
              if (DEBUG) {
                  var msgObj = JSON.parse(data);
                  console.log('CollabSocket In: ' + msgObj.type, msgObj);
              }
          });
  
          EventTarget.attach(this);
  	}
docs: Collab socket client
  
  @class
  @constructor
  
  @param {string} sessionId