#Sub-Store #WebSocket 传输层增加 #earlyData 参数

🐁 们试试? 应该没错吧

async function operator(proxies = []) {
    const _ = lodash
    return proxies.map((p = {}) => {
        if(_.get(p, 'ws-opts')) {
          let path = _.get(p, 'ws-opts.path') || '/'
          if (!path.includes('?')) {
            _.set(p, 'ws-opts.path', path+ '?ed=2048')  
          }
          _.set(p, 'ws-opts.max-early-data', 2048)
          _.set(p, 'ws-opts.early-data-header-name', 'Sec-WebSocket-Protocol')
        }
        return p
    })
}