Added maxfragmentsize for webrtc datachannel

This commit is contained in:
Bryan Roe 2020-05-18 02:39:30 -07:00
parent 20303607f3
commit cf69bf0169

View File

@ -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;