Fix JS view connection timeout under heavy load (#1106)

This commit is contained in:
Jonatan Kłosko 2022-04-13 21:59:43 +02:00 committed by GitHub
parent 115a3be526
commit 5fa9bbe01c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -106,11 +106,17 @@ const JSView = {
this.channel.off(`error:${this.props.ref}`, errorRef);
};
this.channel.push("connect", {
session_token: this.props.sessionToken,
ref: this.props.ref,
id: this.id,
});
this.channel.push(
"connect",
{
session_token: this.props.sessionToken,
ref: this.props.ref,
id: this.id,
},
// If the client is very busy with executing JS we may reach the
// default timeout of 10s, so we increase it
30_000
);
},
updated() {