fixed websockets

This commit is contained in:
2020-10-27 16:40:38 +03:00
parent c1873f23ff
commit a7ff44b18a
7 changed files with 86 additions and 93 deletions

View File

@@ -52,6 +52,7 @@ auth = function(){
}
function logout1(){
sendrequest("auth/?LogOut=1", _ilogin);
ws.close();
}
function sendlogpass(){
$("shadow").style.display = "none";
@@ -67,7 +68,7 @@ auth = function(){
var ws;
function wsinit(){
delete(ws);
ws = new WebSocket('wss://localhost:8081');
ws = new WebSocket('wss://localhost:8080/ws');
ws.onopen = function(){ws.send("Akey="+wsKey);}; // send key after init
ws.onclose = function(evt){
var text = "WebSocket closed: ";