aboutsummaryrefslogtreecommitdiffstats
path: root/htdocs/AFB-websock.js
diff options
context:
space:
mode:
authorfulup <fulup.arfoll@iot.bzh>2017-03-30 10:12:31 +0200
committerfulup <fulup.arfoll@iot.bzh>2017-03-30 10:12:31 +0200
commit36bea37e9781276e7162292ea6933a7f6404c5ee (patch)
treef3feef5053f227a394a8c459faa70270bb33588e /htdocs/AFB-websock.js
parent0cf14446989c8e58a2ce681246507c0803b1e370 (diff)
Initial working implementation for Alsa UCM.
Cleanup format for Alsa control GET. Status: working in progress
Diffstat (limited to 'htdocs/AFB-websock.js')
-rw-r--r--htdocs/AFB-websock.js2
1 files changed, 2 insertions, 0 deletions
diff --git a/htdocs/AFB-websock.js b/htdocs/AFB-websock.js
index f904a58..e77ec89 100644
--- a/htdocs/AFB-websock.js
+++ b/htdocs/AFB-websock.js
@@ -58,6 +58,7 @@ var AFB_websocket;
this.ws.onmessage = onmessage.bind(this);
this.onopen = onopen;
this.onabort = onabort;
+ this.onclose = onabort;
}
function onerror(event) {
@@ -132,6 +133,7 @@ var AFB_websocket;
function close() {
this.ws.close();
+ this.onabort();
}
function call(method, request) {