Added maxfragmentsize for webrtc datachannel
Bryan Roe committed
May 18, 2020 at 02:39 UTC
879243282576c41d9d528cb4fb8ab6208b83d22d
1 file changed
+1
agents/meshcore.js
+1
@@ -2037,6 +2037,7 @@ function createMeshCore(agent) {
2037
ws.webrtc.on('disconnected', function () { /*sendConsoleText('Tunnel #' + this.websocket.tunnel.index + ' WebRTC disconnected');*/ });
2038
ws.webrtc.on('dataChannel', function (rtcchannel) {
2039
//sendConsoleText('WebRTC Datachannel open, protocol: ' + this.websocket.httprequest.protocol);
2040
+ rtcchannel.maxFragmentSize = 32768;
2041
rtcchannel.xrtc = this;
2042
rtcchannel.websocket = this.websocket;
2043
this.rtcchannel = rtcchannel;