修改端口

This commit is contained in:
huangdeliang 2021-06-02 14:13:03 +08:00
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;