summaryrefslogtreecommitdiff
path: root/test/socket.html
diff options
context:
space:
mode:
authorChristian Pointner <equinox@helsinki.at>2015-12-29 02:31:16 (GMT)
committerChristian Pointner <equinox@helsinki.at>2015-12-29 02:31:16 (GMT)
commitcd8dd43123550f7e01bd09e6f5d8bb6dbd2bfee0 (patch)
tree65abef686c63c25f81988bd2f5a13e18f26d08a2 /test/socket.html
parent765566d593bea3fa6091eab5f3aa0960053eb4fe (diff)
implemented basic structure for web socket interface
Diffstat (limited to 'test/socket.html')
-rw-r--r--test/socket.html6
1 files changed, 1 insertions, 5 deletions
diff --git a/test/socket.html b/test/socket.html
index d110c81..9ee91b6 100644
--- a/test/socket.html
+++ b/test/socket.html
@@ -20,12 +20,8 @@
this.sock.onmessage = function (event) {
$('#rawmsg').text(event.data);
}
- this.seqnum = 0;
this.update = function() {
- if ((this.seqnum % 15) == 0) {
- this.sock.send(JSON.stringify({ test: "hello world", seq: this.seqnum }));
- }
- this.seqnum += 1;
+ this.sock.send(JSON.stringify({ COMMAND: "new" }));
}
}