mirror of
https://github.com/4yn/slidershim.git
synced 2024-11-23 21:40:57 +01:00
Merge branch 'main' of github.com:4yn/slidershim
This commit is contained in:
commit
cbbfcdc99e
File diff suppressed because one or more lines are too long
@ -223,7 +223,7 @@ var ws = null;
|
||||
var wsTimeout = 0;
|
||||
var wsConnected = false;
|
||||
const wsConnect = () => {
|
||||
ws = new WebSocket("ws://" + location.host + "/ws");
|
||||
ws = new WebSocket((location.protocol == "https:" ? "wss://" : "ws://") + location.host + "/ws");
|
||||
ws.binaryType = "arraybuffer";
|
||||
ws.onopen = () => {
|
||||
ws.send("alive?");
|
||||
|
Loading…
Reference in New Issue
Block a user