diff options
author | Christian Pointner <equinox@helsinki.at> | 2015-12-29 02:31:16 (GMT) |
---|---|---|
committer | Christian Pointner <equinox@helsinki.at> | 2015-12-29 02:31:16 (GMT) |
commit | cd8dd43123550f7e01bd09e6f5d8bb6dbd2bfee0 (patch) | |
tree | 65abef686c63c25f81988bd2f5a13e18f26d08a2 /test/socket.html | |
parent | 765566d593bea3fa6091eab5f3aa0960053eb4fe (diff) |
implemented basic structure for web socket interface
Diffstat (limited to 'test/socket.html')
-rw-r--r-- | test/socket.html | 6 |
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" })); } } |