Merge pull request #359 from vector-im/dbkr/lower_sdk_timeout

Lower timeout on js-sdk API call to 5s
This commit is contained in:
David Baker 2022-06-01 16:04:14 +01:00 committed by GitHub
commit 880a2ca127
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -80,6 +80,9 @@ export async function initClient(
...storeOpts,
...clientOptions,
useAuthorizationHeader: true,
// Use a relatively low timeout for API calls: this is a realtime application
// so we don't want API calls taking ages, we'd rather they just fail.
localTimeoutMs: 5000,
});
try {