Merge pull request #6230 from optical/socket-io-reconnectionAttempts

Change reconnectionAttempts from boolean to number #6209
This commit is contained in:
Masahiro Wakame
2015-10-13 01:37:01 +09:00
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