【发布时间】:2011-10-01 23:58:19
【问题描述】:
我在 Ubuntu 11.04 中运行 Firefox 7,我注意到 socket.io 正在从 web 套接字退回到 xhr-polling,所以我在 Firefox 的控制台中输入了WebSocket,然后得到了
[00:48:21.224] ReferenceError: WebSocket is not defined
在 Google Chrome 14 上我得到了
WebSocket
function WebSocket() { [native code] }
根据this,WebSockets 从 firefox 4 开始部分支持,从 firefox 6 开始完全支持。
只有 linux 上的 firefox 不同吗?
【问题讨论】:
标签: firefox google-chrome websocket