summaryrefslogtreecommitdiff
path: root/web-static/socket.html
diff options
context:
space:
mode:
authorChristian Pointner <equinox@helsinki.at>2016-07-22 14:15:10 (GMT)
committerChristian Pointner <equinox@helsinki.at>2016-07-22 14:15:10 (GMT)
commit34d536887eeb88e7b3d407a31332a13bb0bff5f5 (patch)
treea71af14b00ccbcbcc283a9275a63867d389408cb /web-static/socket.html
parent458d8f30caca4267bae3733ab3ba1ba55419a14d (diff)
make uploadWeb part of session store - not finished yet
Diffstat (limited to 'web-static/socket.html')
-rw-r--r--web-static/socket.html15
1 files changed, 0 insertions, 15 deletions
diff --git a/web-static/socket.html b/web-static/socket.html
index 206ab44..9b118ac 100644
--- a/web-static/socket.html
+++ b/web-static/socket.html
@@ -74,10 +74,6 @@
}
this.sock.onopen = this.sock_onopen.bind(this);
- this.sendbinmsg = function(data) {
- this.sock.send(data);
- }
-
this.cancel = function() {
this.sock.send(JSON.stringify({COMMAND: "cancel"}));
}
@@ -104,14 +100,6 @@
s = new Session(req);
}
- function sendbinmsg() {
- var byteArray = new Uint8Array(40*1024);
- for (var x = 0; x < byteArray.length; x++){
- byteArray[x] = x
- }
- s.sendbinmsg(new Blob([byteArray], {type: "application/octet-stream"}));
- }
-
function cancel() {
s.cancel();
}
@@ -124,7 +112,6 @@
function buttonsIdle() {
$('#buttonrun').removeAttr('disabled')
$('#buttonreconnect').removeAttr('disabled')
- $('#buttonbinmsg').attr('disabled','disabled')
$('#buttondetach').attr('disabled','disabled')
$('#buttoncancel').attr('disabled','disabled')
}
@@ -132,7 +119,6 @@
function buttonsRunning() {
$('#buttonrun').attr('disabled','disabled')
$('#buttonreconnect').attr('disabled','disabled')
- $('#buttonbinmsg').removeAttr('disabled')
$('#buttondetach').removeAttr('disabled')
$('#buttoncancel').removeAttr('disabled')
}
@@ -164,7 +150,6 @@
<input id="source" type="text" size="30" value="fake://10000">
<input id="refid" type="text" size="15" value="test-reference-id">
<button id="buttonrun" onclick="run()">start</button>
- <button id="buttonbinmsg" onclick="sendbinmsg()">send binary message</button>
<button id="buttondetach" onclick="detach()">detach</button>
<input id="sessionid" type="text" size="45">
<button id="buttonreconnect" onclick="reconnect()">reconnect</button>