提交 0d042f97 编写于 作者: H hjdhnx

增加websocket页面

上级 527ed35c
3.8.8
\ No newline at end of file
3.8.7
\ No newline at end of file
......@@ -78,10 +78,13 @@
}
function getWsUrl() {
let host = location.host;
let hostname = location.hostname;
let protocol = 'ws:';
// let port = location.port;
let port = location.port;
let pathname = '/ws';
let ws_port = parseInt(port)+1;
return protocol+'//'+host+pathname;
// return protocol+'//'+hostname+':'+ws_port+pathname;
}
// const websocketUrl = 'ws://localhost:8080/log';
const websocketUrl = getWsUrl();
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册