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.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>