Тюнинг таймаутов

This commit is contained in:
Book Pauk
2022-07-17 16:53:12 +07:00
parent 4aeaa05f0b
commit 60cb3514b2

View File

@@ -15,7 +15,8 @@ class RemoteStorage {
async wsQuery(query) {
const response = await this.wsc.message(
await this.wsc.send(Object.assign({accessToken: this.accessToken}, query))
await this.wsc.send(Object.assign({accessToken: this.accessToken}, query), 30),
300
);
if (response.error)
throw new Error(response.error);