GramJs: Shorter WebSocket connect timeout (#3691)
This commit is contained in:
parent
cf4701e4e4
commit
9845f7dc5c
@ -3,7 +3,7 @@ const { Mutex } = require('async-mutex');
|
||||
const mutex = new Mutex();
|
||||
|
||||
const closeError = new Error('WebSocket was closed');
|
||||
const CONNECTION_TIMEOUT = 10000;
|
||||
const CONNECTION_TIMEOUT = 3000;
|
||||
const MAX_TIMEOUT = 30000;
|
||||
|
||||
class PromisedWebSockets {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user