From 7c519b2975642dbe36f35216cbf48b334499408b Mon Sep 17 00:00:00 2001 From: David Fifield Date: Tue, 4 Dec 2018 15:48:13 -0700 Subject: [PATCH] =?UTF-8?q?Log=20WebSocket=E2=86=92WebRTC=20messages=20in?= =?UTF-8?q?=20debug=20mode.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Same as the other direction. --- proxy/proxypair.coffee | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/proxy/proxypair.coffee b/proxy/proxypair.coffee index 195f8fe..4f401b0 100644 --- a/proxy/proxypair.coffee +++ b/proxy/proxypair.coffee @@ -139,8 +139,9 @@ class ProxyPair # websocket --> WebRTC onRelayToClientMessage: (event) => + if DEBUG + log 'websocket --> WebRTC data: ' + event.data.byteLength + ' bytes' @r2cSchedule.push event.data - # log 'websocket --> WebRTC data: ' + event.data.byteLength + ' bytes' @flush() onError: (event) =>