Change reconnectionAttempts from boolean to number #6209

This commit is contained in:
Jared Klopper
2015-10-10 23:14:02 +13:00
parent 3fc1377ce2
commit 3f72103eb0
2 changed files with 5 additions and 1 deletions
@@ -55,3 +55,7 @@ function testUsingItJustAsACrossBrowserWebSocket() {
});
});
}
function testSettingReconnectionAttempts() {
var manager = io.Manager({ reconnection: true, timeout: 0, reconnectionAttempts: 2, reconnectionDelay: 10 });
}
+1 -1
View File
@@ -458,7 +458,7 @@ declare module SocketIOClient {
* How many reconnection attempts should we try?
* @default Infinity
*/
reconnectionAttempts?: boolean;
reconnectionAttempts?: number;
/**
* The time delay in milliseconds between reconnection attempts