From 13994a963810ffae4ba3aeb4443121f704ebc2e4 Mon Sep 17 00:00:00 2001 From: matt Date: Mon, 28 Mar 2022 15:12:02 +0000 Subject: [PATCH] auto upgrade to udp --- core/rfb.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/core/rfb.js b/core/rfb.js index f61263e2..b87bed42 100644 --- a/core/rfb.js +++ b/core/rfb.js @@ -136,7 +136,7 @@ export default class RFB extends EventTargetMixin { this._maxVideoResolutionX = 960; this._maxVideoResolutionY = 540; this._clipboardBinary = true; - this._useUdp = false; + this._useUdp = true; this._trackFrameStats = false; @@ -1033,6 +1033,10 @@ export default class RFB extends EventTargetMixin { } } + if (this._useUdp) { + setTimeout(function() { this._sendUdpUpgrade() }.bind(this), 3000); + } + Log.Debug("<< RFB.connect"); }