code: function (instance) {
                      window.clearTimeout(privateData.reconnectTimeoutId);
                      privateData.reconnectTimeoutId = null;
  
                      if (changeState(instance,
                                      signalR.connectionState.reconnecting,
                                      signalR.connectionState.connected) === true) {
                          // Successfully reconnected!
                          instance.log("Raising the reconnect event");
                          $(instance).triggerHandler(events.onReconnect);
                      }
                  }
docs: / <summary>Starts the long polling connection</summary> / <param name="connection" type="signalR">The SignalR connection to start</param>