已关闭。此问题需要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”)
1条答案
按热度按时间vwkv1x7d1#
我决定了,但我不知道这是否正确。
之前
if(this.server._opts.connectionStateRecovery && RECOVERABLE_DISCOVERECT_REASONS.has(reason)){
后
if(**this.server._opts &**this.server._opts.connectionStateRecovery && RECOVERABLE_DISCOVERECT_REASONS.has(reason)){
这样