NodeJS 如何解决问题?(connectionStateRecovery)[关闭]

rwqw0loc  于 11个月前  发布在  Node.js
关注(0)|答案(1)|浏览(98)

已关闭。此问题需要details or clarity。目前不接受回答。
**要改进此问题吗?**通过editing this post添加详细信息并阐明问题。

9分钟前关闭
Improve this question
\node_modules\socket.io\dist\socket.js:548 if(this.server._opts.connectionStateRecovery&&
TypeError:无法读取Socket._onclose上未定义的属性(阅读“connectionStateRecovery”)

vwkv1x7d

vwkv1x7d1#

我决定了,但我不知道这是否正确。
之前
if(this.server._opts.connectionStateRecovery && RECOVERABLE_DISCOVERECT_REASONS.has(reason)){

if(**this.server._opts &**this.server._opts.connectionStateRecovery && RECOVERABLE_DISCOVERECT_REASONS.has(reason)){
这样

相关问题