code: function (connection, transport, reconnecting, poll, ajaxPost) {
              /// <summary>Gets the url for making a GET based connect request</summary>
              var baseUrl = transport === "webSockets" ? "" : connection.baseUrl,
                  url = baseUrl + connection.appRelativeUrl,
                  qs = "transport=" + transport;
  
              if (!ajaxPost && connection.groupsToken) {
                  qs += "&groupsToken=" + window.encodeURIComponent(connection.groupsToken);
              }
  
              if (!reconnecting) {
                  url += "/connect";
              } else {
                  if (poll) {
                      // longPolling transport specific
                      url += "/poll";
                  } else {
                      url += "/reconnect";
                  }
  
                  if (!ajaxPost && connection.messageId) {
                      qs += "&messageId=" + window.encodeURIComponent(connection.messageId);
                  }
              }
              url += "?" + qs;
              url = transportLogic.prepareQueryString(connection, url);
  
              if (!ajaxPost) {
                  url += "&tid=" + Math.floor(Math.random() * 11);
              }
  
              return url;
          }
docs: BUG #2953: The url needs to be same otherwise it will cause a memory leak