我在更新socket.io库从v2.3.0
到v3.1.0
后,在Chrome扩展程序中看到这个错误:Uncaught ReferenceError: window is not defined
如果我继续使用旧的socket.io客户端,则似乎无法与socket.io服务器3.1.0
配合使用(在浏览器开发工具网络选项卡上,我会看到此请求的消息:{"code":5,"message":"Unsupported protocol version"}
和http 400 bad request
)
是否存在socket.io v3.x和Chrome扩展之间的问题?
谢谢