Why are websockets disabled in the browser

谁说胖子不能爱 提交于 2020-02-05 12:43:26

问题


Meteor is awesome, but it looks like it uses long polling in the browser instead of real websockets.

Meteor uses sockjs, right? Are sockets disabled explicitly? (read it somewhere here). what's the reason for it?

Tanks a lot Andreas


回答1:


Edit: Since Meteor 0.6.3.1 websockets are enabled by default in numerous browsers.

Previous answer: For some reason I can't find the source (think it was on the mailinglist, but can't find it there), but from the top of my head:

They are explictly disabled due to compatibility issues with various browsers.




回答2:


WebSockets are (were?) disabled in meteor due to the fact that they crashed Chrome when Inspector was enabled. That's it.



来源:https://stackoverflow.com/questions/11783729/why-are-websockets-disabled-in-the-browser

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!