修改端口
This commit is contained in:
parent
a4252af6ed
commit
953d188f50
@ -1,7 +1,7 @@
|
||||
const { protocol, hostname, origin, port } = window.location;
|
||||
const wsProtocol = protocol.startsWith("https") ? "wss" : "ws";
|
||||
const url = `${wsProtocol}://${hostname}${
|
||||
hostname === "localhost" ? `:${8091}` : ""
|
||||
hostname === "localhost" ? ":8091" : ""
|
||||
}/ws`;
|
||||
let ws = undefined;
|
||||
let intervalRef = undefined;
|
||||
|
Loading…
x
Reference in New Issue
Block a user