'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;