From 7556e5560db7ea1f5cdff4fff3aac0c558ed2f60 Mon Sep 17 00:00:00 2001 From: Cutls Date: Fri, 22 Mar 2019 23:10:23 +0900 Subject: [PATCH] TheDesk Usamin (18.1.1) --- app/js/common/version.js | 14 +++++++++++++- app/view/en/index.html | 9 ++++++--- app/view/en/setting.vue.js | 2 +- app/view/ja/index.html | 9 ++++++--- app/view/ja/setting.vue.js | 2 +- app/view/make/index.sample.html | 7 +++++-- app/view/ps/index.html | 9 ++++++--- app/view/ps/setting.vue.js | 2 +- 8 files changed, 39 insertions(+), 15 deletions(-) diff --git a/app/js/common/version.js b/app/js/common/version.js index d0575e33..c25fc035 100644 --- a/app/js/common/version.js +++ b/app/js/common/version.js @@ -197,10 +197,14 @@ function verck(ver) { } } }); +} +var infostreaming=false; +function infowebsocket(){ infows = new WebSocket("wss://thedesk.top/ws/"); infows.onopen = function(mess) { console.log(tlid + ":Connect Streaming Info:"); console.log(mess); + infostreaming=true; } infows.onmessage = function(mess) { console.log(":Receive Streaming:"); @@ -246,11 +250,19 @@ function verck(ver) { } } infows.onerror = function(error) { + infostreaming=false; console.error("Error closing:info"); console.error(error); return false; }; infows.onclose = function() { + infostreaming=false; console.error("Closing:info"); }; -} \ No newline at end of file +} +setInterval(function(){ + if(!infostreaming){ + console.log("try to connect") + infowebsocket(); + } +}, 10000); \ No newline at end of file diff --git a/app/view/en/index.html b/app/view/en/index.html index 751f154b..c7344587 100644 --- a/app/view/en/index.html +++ b/app/view/en/index.html @@ -32,7 +32,7 @@