From cf69bf0169a49dc7225dedba4d71f2d76852409b Mon Sep 17 00:00:00 2001 From: Bryan Roe Date: Mon, 18 May 2020 02:39:30 -0700 Subject: [PATCH] Added maxfragmentsize for webrtc datachannel --- agents/meshcore.js | 1 + 1 file changed, 1 insertion(+) diff --git a/agents/meshcore.js b/agents/meshcore.js index c238df74..cff04cf4 100644 --- a/agents/meshcore.js +++ b/agents/meshcore.js @@ -2037,6 +2037,7 @@ function createMeshCore(agent) { ws.webrtc.on('disconnected', function () { /*sendConsoleText('Tunnel #' + this.websocket.tunnel.index + ' WebRTC disconnected');*/ }); ws.webrtc.on('dataChannel', function (rtcchannel) { //sendConsoleText('WebRTC Datachannel open, protocol: ' + this.websocket.httprequest.protocol); + rtcchannel.maxFragmentSize = 32768; rtcchannel.xrtc = this; rtcchannel.websocket = this.websocket; this.rtcchannel = rtcchannel;