mirror of
https://github.com/wassname/DefinitelyTyped.git
synced 2026-10-27 12:21:19 +08:00
Change reconnectionAttempts from boolean to number #6209
This commit is contained in:
1 parent
3fc1377ce2
commit
3f72103eb0
2 files changed
+5
-1
No files matched your search
@@ -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