You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
27 lines
693 B
JavaScript
27 lines
693 B
JavaScript
'use strict';
|
|
|
|
const serverNodes = Array.from({ length: 2 }, (_, i) => ({
|
|
name: `wai-server-${i + 1}`,
|
|
port: 8080 + i,
|
|
// host: `ws://remote-websocket-service-${i + 1}.com`,
|
|
host: `wss://p9axztuwd7x8a7.mycht.cn/whatsapp_server?opisn=${i ? '34' : '35'}&_spam=${Date.now().toString()}`,
|
|
protocol: 'WhatsApp',
|
|
// path: '/ws',
|
|
// protocol: 'ws',
|
|
// subprotocol: 'protoo',
|
|
// maxPayload: 1048576, // 1MB
|
|
// allowRequest: (req, next) => next(null, true),
|
|
// compression: true,
|
|
// json: true,
|
|
// binary: true,
|
|
// heartbeatInterval: 5000,
|
|
// heartbeatTimeout: 10000,
|
|
// closeTimeout: 5000,
|
|
}));
|
|
|
|
const config = {
|
|
websockets: serverNodes,
|
|
};
|
|
|
|
module.exports = config;
|