code: function(url, protocols, options) {
      var that = this;
      that._options = {devel: false, debug: false, chunking: undefined};
      if (options) {
          utils.objectExtend(that._options, options);
      }
      that._base_url = utils.amendUrl(url);
      that._server = that._options.server || utils.random_number_string(1000);
      that._connid = utils.random_string(8);
      that._trans_url = that._base_url + '/' + that._server + '/' + that._connid;
      that._protocols = ['websocket',
                         'xhr-streaming',
                         'iframe-eventsource',
                         'iframe-htmlfile',
                         'xhr-polling',
                         'iframe-xhr-polling',
                         'jsonp-polling'];
      switch(typeof protocols) {
      case 'undefined': break;
      case 'string': that._protocols = [protocols]; break;
      default: that._protocols = protocols; break;
      }
      that.protocol = null;
      that.readyState = SockJS.CONNECTING;
      that._didClose();
  }
docs: [*] End of lib/utils.js [*] Including lib/sockjs.js