Skip to content

Commit 89ca87c

Browse files
author
Bill Barnes
committed
Longer timeout (regression)
1 parent 8c228b6 commit 89ca87c

2 files changed

Lines changed: 3 additions & 1 deletion

File tree

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,3 +3,5 @@ built
33
.vscode
44
/directLine.js
55
/directLine.js.map
6+
7+
npm-debug.log

src/directLine.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -225,7 +225,7 @@ export interface DirectLineOptions {
225225

226226
const lifetimeRefreshToken = 30 * 60 * 1000;
227227
const intervalRefreshToken = lifetimeRefreshToken / 2;
228-
const timeout = 5 * 1000;
228+
const timeout = 20 * 1000;
229229
const retries = (lifetimeRefreshToken - intervalRefreshToken) / timeout;
230230

231231
const errorExpiredToken = new Error("expired token");

0 commit comments

Comments
 (0)