mirror of
https://github.com/wassname/DefinitelyTyped.git
synced 2026-09-09 11:13:57 +08:00
Change reconnectionAttempts from boolean to number #6209
This commit is contained in:
@@ -55,3 +55,7 @@ function testUsingItJustAsACrossBrowserWebSocket() {
|
||||
});
|
||||
});
|
||||
}
|
||||
|
||||
function testSettingReconnectionAttempts() {
|
||||
var manager = io.Manager({ reconnection: true, timeout: 0, reconnectionAttempts: 2, reconnectionDelay: 10 });
|
||||
}
|
||||
|
||||
+1
-1
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user