diff --git a/js/client.js b/js/client.js index 5b8d282cd..501a12fe1 100644 --- a/js/client.js +++ b/js/client.js @@ -648,8 +648,8 @@ } }; this.socket.onmessage = function(msg) { - if (window.console && console.log && (Config.server.id !== 'showdown' || msg.data.charAt(0) !== '|')) { - console.log('received: '+msg.data); + if (window.console && console.log) { + console.log('<< '+msg.data); } if (msg.data.charAt(0) !== '{') { self.receive(msg.data); @@ -711,6 +711,9 @@ this.sendQueue.push(data); return; } + if (window.console && console.log) { + console.log('>> '+data); + } this.socket.send(data); }, /**