santech-galaxy-component 2.5.22 → 2.5.23

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -114346,10 +114346,10 @@ function WebServer(mgr) {
114346
114346
  this.connect = function () {
114347
114347
  if (!_this.tryConnect) return;
114348
114348
  const isSecure = window.location.protocol === 'https:';
114349
- const wsProtocol = isSecure ? 'wss://' : 'ws://';
114350
- const host = window.location.hostname; // 包含域名和端口
114351
- var con = new WebSocket(wsProtocol + host + ':' + mgr.Config.edge.port);
114352
- console.log("开始连接服务:" + wsProtocol + host + ':' + mgr.Config.edge.port);
114349
+ // const wsProtocol = isSecure ? 'wss://' : 'ws://';
114350
+ const wsProtocol = 'ws://';
114351
+ var con = new WebSocket(wsProtocol + '127.0.0.1:' + mgr.Config.edge.port);
114352
+ console.log("开始连接服务:" + wsProtocol + '127.0.0.1:' + mgr.Config.edge.port);
114353
114353
 
114354
114354
  // 打开Socket
114355
114355
  con.onopen = function (event) {
package/lib/index.umd.js CHANGED
@@ -114355,10 +114355,10 @@ function WebServer(mgr) {
114355
114355
  this.connect = function () {
114356
114356
  if (!_this.tryConnect) return;
114357
114357
  const isSecure = window.location.protocol === 'https:';
114358
- const wsProtocol = isSecure ? 'wss://' : 'ws://';
114359
- const host = window.location.hostname; // 包含域名和端口
114360
- var con = new WebSocket(wsProtocol + host + ':' + mgr.Config.edge.port);
114361
- console.log("开始连接服务:" + wsProtocol + host + ':' + mgr.Config.edge.port);
114358
+ // const wsProtocol = isSecure ? 'wss://' : 'ws://';
114359
+ const wsProtocol = 'ws://';
114360
+ var con = new WebSocket(wsProtocol + '127.0.0.1:' + mgr.Config.edge.port);
114361
+ console.log("开始连接服务:" + wsProtocol + '127.0.0.1:' + mgr.Config.edge.port);
114362
114362
 
114363
114363
  // 打开Socket
114364
114364
  con.onopen = function (event) {