// \node_modules\sockjs-client\dist\sockjs.js 1606行这段注释掉
try {
// self.xhr.send(payload); // 这段注释掉就行
} catch (e) {
self.emit('finish', 0, '');
self._cleanup(false);
}
sockjs.js:1684 WebSocket connection to ‘ws://192.168.20.158:9534/sockjs-node/172/o2uayhgf/websocket‘
本文档介绍了如何在sockjs-client模块中注释掉xhr发送,以解决可能的性能问题或特定需求,同时确保了清理过程的正确执行。

最低0.47元/天 解锁文章

被折叠的 条评论
为什么被折叠?



