我在我的网站上添加了用户端错误日志记录。有时它会记录来自 socket.io 代码的这种错误:
TypeError: this.transport is undefined
只有在 Windows 上使用 Firefox 15th 版本的用户才能看到该错误。
在服务器端,我这样定义我的传输:
this.io.configure(function(){
self.io.set('transports', ['websocket', 'flashsocket', 'htmlfile', 'xhr-polling', 'jsonp-polling']);
self.io.set('log level', 0);
});
Socket.io 版本是 0.9.10。
你能告诉我这个错误的原因是什么吗?
任何帮助表示赞赏。