1
0
Fork 0
mirror of https://github.com/Ylianst/MeshCentral.git synced 2025-03-09 15:40:18 +00:00

Made it easier to debug log WebRTC/WebSocket

This commit is contained in:
Ylian Saint-Hilaire 2021-11-18 12:00:45 -08:00
parent 05ee363a66
commit 17913da65f
3 changed files with 20 additions and 5 deletions

View file

@ -2968,7 +2968,7 @@ function onTunnelControlData(data, ws) {
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.maxFragmentSize = 32768;
rtcchannel.xrtc = this;
rtcchannel.websocket = this.websocket;
this.rtcchannel = rtcchannel;