dsbrgtinjpbgrs
This commit is contained in:
parent
b841e066b9
commit
218797c685
1 changed files with 3 additions and 3 deletions
|
@ -17,10 +17,10 @@ function log(...args) {
|
|||
|
||||
let wsurl = new URL(document.location.toString());
|
||||
wsurl.port = 3000;
|
||||
if (document.location.protocol == "http") {
|
||||
wsurl.protocol = "ws";
|
||||
} else {
|
||||
if (document.location.protocol == "https") {
|
||||
wsurl.protocol = "wss";
|
||||
} else {
|
||||
wsurl.protocol = "ws";
|
||||
}
|
||||
let conn = new WebSocket(wsurl);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue