From 1788a9dfa1695bee35388c5bbe73c595eeb0769c Mon Sep 17 00:00:00 2001 From: David Baird Date: Tue, 12 Nov 2013 14:45:27 -0700 Subject: [PATCH] Increase testserver verbosity. --- example-server.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/example-server.js b/example-server.js index 64e4603..a700af5 100644 --- a/example-server.js +++ b/example-server.js @@ -23,9 +23,9 @@ wss.on('connection', function(ws) { console.log('/foo connected'); ws.on('message', function(data, flags) { if (flags.binary) { return; } - console.log('/foo >>> ' + data); - if (data == 'goodbye') { ws.send('galaxy'); } - if (data == 'hello') { ws.send('world'); } + console.log('>>> ' + data); + if (data == 'goodbye') { console.log('<<< galaxy'); ws.send('galaxy'); } + if (data == 'hello') { console.log('<<< world'); ws.send('world'); } }); ws.on('close', function() { console.log('Connection closed!');