+`ws`; 修改模拟的配置

dev/supplier-email-drawer
Lei OT 9 months ago
parent ad3c732125
commit 7ef3b6fbe5

@ -4,7 +4,7 @@ const serverNodes = Array.from({ length: 2 }, (_, i) => ({
name: `wai-server-${i + 1}`, name: `wai-server-${i + 1}`,
port: 8080 + i, port: 8080 + i,
// host: `ws://remote-websocket-service-${i + 1}.com`, // host: `ws://remote-websocket-service-${i + 1}.com`,
host: `wss://p9axztuwd7x8a7.mycht.cn/whatsapp_server?opisn=${i ? '383' : '404'}&_spam=${Date.now().toString()}`, host: `wss://p9axztuwd7x8a7.mycht.cn/whatsapp_server?opisn=${i ? '34' : '35'}&_spam=${Date.now().toString()}`,
protocol: 'WhatsApp', protocol: 'WhatsApp',
// path: '/ws', // path: '/ws',
// protocol: 'ws', // protocol: 'ws',

@ -20,7 +20,8 @@
"log4js": "^6.9.1", "log4js": "^6.9.1",
"mysql2": "^3.11.5", "mysql2": "^3.11.5",
"sequelize": "^6.37.5", "sequelize": "^6.37.5",
"uuid": "3.3.2" "uuid": "3.3.2",
"ws": "^8.18.0"
}, },
"devDependencies": { "devDependencies": {
"eslint": "5.16.0", "eslint": "5.16.0",
@ -6445,6 +6446,26 @@
"signal-exit": "^3.0.2" "signal-exit": "^3.0.2"
} }
}, },
"node_modules/ws": {
"version": "8.18.0",
"resolved": "https://registry.npmjs.org/ws/-/ws-8.18.0.tgz",
"integrity": "sha512-8VbfWfHLbbwu3+N6OKsOMpBdT4kXPDDB9cJk2bJ6mh9ucxdlnNvH1e+roYkKmN9Nxw2yjz7VzeO9oOz2zJ04Pw==",
"engines": {
"node": ">=10.0.0"
},
"peerDependencies": {
"bufferutil": "^4.0.1",
"utf-8-validate": ">=5.0.2"
},
"peerDependenciesMeta": {
"bufferutil": {
"optional": true
},
"utf-8-validate": {
"optional": true
}
}
},
"node_modules/x-xss-protection": { "node_modules/x-xss-protection": {
"version": "1.1.0", "version": "1.1.0",
"resolved": "https://registry.npmjs.org/x-xss-protection/-/x-xss-protection-1.1.0.tgz", "resolved": "https://registry.npmjs.org/x-xss-protection/-/x-xss-protection-1.1.0.tgz",

@ -38,6 +38,7 @@
"log4js": "^6.9.1", "log4js": "^6.9.1",
"mysql2": "^3.11.5", "mysql2": "^3.11.5",
"sequelize": "^6.37.5", "sequelize": "^6.37.5",
"uuid": "3.3.2" "uuid": "3.3.2",
"ws": "^8.18.0"
} }
} }

Loading…
Cancel
Save