具体原因看下面的描述https://github.com/sockjs/sockjs-clientAlthough the 'SockJS' object tries to emulate the 'WebSocket' behaviour, it's impossible to support all features. One of the important SockJS limitations is the fact that you're not allowed to open more than one SockJS connection to a single domain at a time. This limitation is caused by a in-browser limit of outgoing connections - usually browsers don't allow opening more than two outgoing connections to a single domain. Single SockJS session requires those two connections - one for downloading data, the other for sending messages. Opening a second SockJS session at the same time would most probably block and can result in both sessions timing out.
解决方案 »
- EXT3中EditorGridPanel,TreePanel,TriggerField 的超级BUG,高手请入
- javascript生成table
- style.display为空或者不是对象 急
- 有没有一种编辑软件可以直接用鼠标选择脚本代码呀
- javascript中 <!--的作用---是不是可以在版本不对的代码无法执行的情况下忽略标记的代码?
- js占用线程吗?
- 可不可以遍历class="abc"的所有对象?
- getAttribute("target")的意思?
- 请解释一下这个函数
- 关于在模式对话框ShowModalDialog()中的,数据提交,及iframe动态更新问题
- js中切换样式
- 如何让 videojs 支持 flv 格式视频
window.sockjs = window.sockjs || {};
if(!window.sockjs[url]) {
window.sockjs[url] = new SockJS("url");
}
return window.sockjs[url];
}
这样每次每次得到SockJs都用这个create函数