我试图解决这个问题problem,有些事情并不顺利,我也不了解发生了什么。
这是服务器脚本的调试输出:
engine:ws received "2" +25s
engine:socket packet +0ms
engine:socket got ping +1ms
engine:socket sending packet "pong" (undefined) +0ms
engine:socket flushing buffer to transport +0ms
engine:ws writing "3" +0ms
engine:socket sending packet "pong" (undefined) +0ms
是什么意思?
非常感谢!
答案 0 :(得分:0)
undefined
是数据包的数据,未定义。
socket.io
的默认ping / pong机制会导致这种情况,这是正常的。