wechaty / puppet-wechat

Wechaty Puppet Provider for WeChat
https://www.npmjs.com/package/wechaty-puppet-wechat
Apache License 2.0
408 stars 68 forks source link

Fix perfect restart (3 times) #155

Open huan opened 2 years ago

huan commented 2 years ago

https://github.com/wechaty/wechaty-puppet-wechat/blob/a82066e952aae4a93c18504fafbcd2e9e1139181/src/puppet-wechat.spec.ts#L133-L144

# RANDOMBYTESREQUEST
node:internal/async_hooks:203                                                                                          
node:internal/crypto/random:132                                                                                        
/home/huan/git/wechaty/wechaty-puppet-wechat/node_modules/ws/lib/sender.js:80                                           - randomFillSync(mask, 0, 4);
/home/huan/git/wechaty/wechaty-puppet-wechat/node_modules/ws/lib/sender.js:295                                          - Sender.frame(buf, {
/home/huan/git/wechaty/wechaty-puppet-wechat/node_modules/ws/lib/websocket.js:361                                       - this._sender.send(data || EMPTY_BUFFER, opts, cb);
/home/huan/git/wechaty/wechaty-puppet-wechat/node_modules/puppeteer/lib/cjs/puppeteer/node/NodeWebSocketTransport.js:35 - this._ws.send(message);
/home/huan/git/wechaty/wechaty-puppet-wechat/node_modules/puppeteer/lib/cjs/puppeteer/common/Connection.js:78           - this._transport.send(stringifiedMessage);
/home/huan/git/wechaty/wechaty-puppet-wechat/node_modules/puppeteer/lib/cjs/puppeteer/common/Connection.js:211          - const id = this._connection._rawSend({
/home/huan/git/wechaty/wechaty-puppet-wechat/node_modules/puppeteer-extra-plugin-stealth/evasions/sourceurl/index.js:32 - return await originalMethod.apply(context, [method, paramArgs])