GUI -- Mock WebSocket server : fixed bug where args were not repeated.

Change-Id: Ie6c6e0e1bf0b29b6182cac9d0cf5a4ee450024d6
diff --git a/web/gui/src/test/_karma/wssrv.js b/web/gui/src/test/_karma/wssrv.js
index 7bb29dc..b99cb6d 100644
--- a/web/gui/src/test/_karma/wssrv.js
+++ b/web/gui/src/test/_karma/wssrv.js
@@ -96,8 +96,14 @@
     rl.prompt();
     rl.on('line', function (line) {
         var words = line.trim().split(' '),
-            cmd = words.shift() || lastcmd,
-            str = words.join(' ') || lastargs;
+            cmd = words.shift(),
+            str = words.join(' ');
+
+        if (!cmd) {
+            // repeat last command
+            cmd = lastcmd;
+            str = lastargs;
+        }
 
         switch(cmd) {
             case 'c': connStatus(); break;