Skip to content

Commit

Permalink
newer servers require caps to enable pings
Browse files Browse the repository at this point in the history
  • Loading branch information
totaam committed Nov 28, 2023
1 parent 7cde1e1 commit a2c6626
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion html5/js/Client.js
Original file line number Diff line number Diff line change
Expand Up @@ -1501,7 +1501,7 @@ class XpraClient {
"vrefresh": this.vrefresh,
"file-chunks": FILE_CHUNKS_SIZE,
});
this._update_capabilities(this._get_network_caps())
this._update_capabilities(this._get_network_caps());
if (this.encryption) {
this.cipher_in_caps = this._get_cipher_caps()
this._update_capabilities({"encryption" : this.cipher_in_caps});
Expand Down Expand Up @@ -1573,6 +1573,9 @@ class XpraClient {
"lz4": (lz4 && lz4.decode != "undefined"),
"bandwidth-limit": this.bandwidth_limit,
"connection-data": Utilities.getConnectionInfo(),
"network" : {
"pings" : 5,
}
}
}

Expand Down

0 comments on commit a2c6626

Please sign in to comment.