maintenance: dependency updates
This commit is contained in:
@@ -1,14 +1,15 @@
|
||||
/* jquery.signalR.core.js */
|
||||
/*global window:false */
|
||||
/*!
|
||||
* ASP.NET SignalR JavaScript Library v2.1.1
|
||||
* ASP.NET SignalR JavaScript Library v2.1.2
|
||||
* http://signalr.net/
|
||||
*
|
||||
* Copyright (C) Microsoft Corporation. All rights reserved.
|
||||
*
|
||||
*/
|
||||
|
||||
/// <reference path="../Core/jquery-2.1.1.js" />
|
||||
/// <reference path="Scripts/jquery-1.6.4.js" />
|
||||
/// <reference path="jquery.signalR.version.js" />
|
||||
(function ($, window, undefined) {
|
||||
|
||||
var resources = {
|
||||
@@ -704,7 +705,9 @@
|
||||
connection.id = res.ConnectionId;
|
||||
connection.token = res.ConnectionToken;
|
||||
connection.webSocketServerUrl = res.WebSocketServerUrl;
|
||||
connection._.longPollDelay = res.LongPollDelay * 1000; // in ms
|
||||
|
||||
// The long poll timeout is the ConnectionTimeout plus 10 seconds
|
||||
connection._.pollTimeout = res.ConnectionTimeout * 1000 + 10000; // in ms
|
||||
|
||||
// Once the server has labeled the PersistentConnection as Disconnected, we should stop attempting to reconnect
|
||||
// after res.DisconnectTimeout seconds.
|
||||
@@ -959,7 +962,6 @@
|
||||
delete connection._.pingIntervalId;
|
||||
delete connection._.lastMessageAt;
|
||||
delete connection._.lastActiveAt;
|
||||
delete connection._.longPollDelay;
|
||||
|
||||
// Clear out our message buffer
|
||||
connection._.connectingMessageBuffer.clear();
|
||||
@@ -1317,7 +1319,7 @@
|
||||
type: "POST"
|
||||
});
|
||||
|
||||
connection.log("Fired ajax abort async = " + async + ".");
|
||||
connection.log("Fired ajax abort async = " + doAsync + ".");
|
||||
},
|
||||
|
||||
ajaxStart: function (connection, onSuccess) {
|
||||
@@ -2149,27 +2151,13 @@
|
||||
events = $.signalR.events,
|
||||
changeState = $.signalR.changeState,
|
||||
isDisconnecting = $.signalR.isDisconnecting,
|
||||
transportLogic = signalR.transports._logic,
|
||||
browserSupportsXHRProgress = (function () {
|
||||
try {
|
||||
return "onprogress" in new window.XMLHttpRequest();
|
||||
} catch (e) {
|
||||
// No XHR means no XHR progress event
|
||||
return false;
|
||||
}
|
||||
})();
|
||||
transportLogic = signalR.transports._logic;
|
||||
|
||||
signalR.transports.longPolling = {
|
||||
name: "longPolling",
|
||||
|
||||
supportsKeepAlive: function (connection) {
|
||||
return browserSupportsXHRProgress &&
|
||||
connection.ajaxDataType !== "jsonp" &&
|
||||
// Don't check for keep alives if there is a delay configured between poll requests.
|
||||
// Don't check for keep alives if the server didn't send back the "LongPollDelay" as
|
||||
// part of the response to /negotiate. That indicates the server is running an older
|
||||
// version of SignalR that doesn't send long polling keep alives.
|
||||
connection._.longPollDelay === 0;
|
||||
supportsKeepAlive: function () {
|
||||
return false;
|
||||
},
|
||||
|
||||
reconnectDelay: 3000,
|
||||
@@ -2244,6 +2232,7 @@
|
||||
}
|
||||
},
|
||||
url: url,
|
||||
timeout: connection._.pollTimeout,
|
||||
success: function (result) {
|
||||
var minData,
|
||||
delay = 0,
|
||||
@@ -2486,6 +2475,8 @@
|
||||
};
|
||||
},
|
||||
|
||||
constructor: hubProxy,
|
||||
|
||||
hasSubscriptions: function () {
|
||||
return hasMembers(this._.callbackMap);
|
||||
},
|
||||
@@ -2823,7 +2814,7 @@
|
||||
/*global window:false */
|
||||
/// <reference path="jquery.signalR.core.js" />
|
||||
(function ($, undefined) {
|
||||
$.signalR.version = "2.1.1";
|
||||
$.signalR.version = "2.1.2";
|
||||
}(window.jQuery));
|
||||
|
||||
/*!
|
||||
@@ -2836,8 +2827,8 @@
|
||||
*
|
||||
*/
|
||||
|
||||
/// <reference path="..\..\SignalR.Client.JS\Scripts\jquery-1.6.4.js" />
|
||||
/// <reference path="jquery.signalR.js" />
|
||||
/// <reference path="..\..\Core\jquery-2.1.1.js" />
|
||||
/// <reference path="jquery.signalR-2.1.1.js" />
|
||||
(function ($, window, undefined) {
|
||||
/// <param name="$" type="jQuery" />
|
||||
"use strict";
|
||||
|
||||
Reference in New Issue
Block a user