为什么在浏览器中禁用了 websockets [英] Why are websockets disabled in the browser

查看:76
本文介绍了为什么在浏览器中禁用了 websockets的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

Meteor 很棒,但它看起来像是在浏览器中使用长轮询而不是真正的 websocket.

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

Meteor 使用的是 sockjs,对吧?是否明确禁用了套接字?(在这里的某个地方阅读).这是什么原因?

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

坦克很多安德烈亚斯

推荐答案

Meteor 0.6.3.1 websockets 在许多浏览器中默认启用.

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.

这篇关于为什么在浏览器中禁用了 websockets的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆