Lower timeout on js-sdk API call to 5s

This commit is contained in:
David Baker 2022-05-30 11:46:27 +01:00
parent 2cdbeb6f12
commit 7ed2f9bd9a

View file

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