summaryrefslogtreecommitdiff
path: root/web-static/socket.html
diff options
context:
space:
mode:
Diffstat (limited to 'web-static/socket.html')
-rw-r--r--web-static/socket.html4
1 files changed, 3 insertions, 1 deletions
diff --git a/web-static/socket.html b/web-static/socket.html
index 9781e81..6d6236c 100644
--- a/web-static/socket.html
+++ b/web-static/socket.html
@@ -66,8 +66,10 @@
$('#rawmsg').text("");
this.sock = new WebSocket("ws://localhost:4080/public/socket");
this.sock_onmessage = function (event) {
- $('#rawmsg').append(event.data + "\n");
msg = $.parseJSON(event.data)
+ if (msg.TYPE != "progress") {
+ $('#rawmsg').append(event.data + "<br />\n");
+ }
switch (msg.TYPE) {
case "ack":
$('#sessionid').val(msg.ID);