mirror of
https://gitlab.torproject.org/tpo/anti-censorship/pluggable-transports/snowflake.git
synced 2025-10-14 05:11:19 -04:00
Log WebSocket→WebRTC messages in debug mode.
Same as the other direction.
This commit is contained in:
parent
f06104d182
commit
7c519b2975
1 changed files with 2 additions and 1 deletions
|
@ -139,8 +139,9 @@ class ProxyPair
|
||||||
|
|
||||||
# websocket --> WebRTC
|
# websocket --> WebRTC
|
||||||
onRelayToClientMessage: (event) =>
|
onRelayToClientMessage: (event) =>
|
||||||
|
if DEBUG
|
||||||
|
log 'websocket --> WebRTC data: ' + event.data.byteLength + ' bytes'
|
||||||
@r2cSchedule.push event.data
|
@r2cSchedule.push event.data
|
||||||
# log 'websocket --> WebRTC data: ' + event.data.byteLength + ' bytes'
|
|
||||||
@flush()
|
@flush()
|
||||||
|
|
||||||
onError: (event) =>
|
onError: (event) =>
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue