From 36bea37e9781276e7162292ea6933a7f6404c5ee Mon Sep 17 00:00:00 2001 From: fulup Date: Thu, 30 Mar 2017 10:12:31 +0200 Subject: Initial working implementation for Alsa UCM. Cleanup format for Alsa control GET. Status: working in progress --- htdocs/AFB-websock.js | 2 ++ 1 file changed, 2 insertions(+) (limited to 'htdocs/AFB-websock.js') 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) { -- cgit 1.2.3-korg