我注意到这里的Meteor stream包包含SockJS:https://github.com/meteor/meteor/tree/master/packages/stream
基于一些提交消息,我猜Meteor使用SockJS轮询作为其主要的浏览器-服务器通信机制。对吗?
发布于 2012-04-13 02:45:26
看起来是这样的。但它没有使用websockets或流,就像现在代码中注释的那样:
self.socket = new SockJS(self.url, undefined, { debug: false, protocols_whitelist: [
**// only allow polling protocols. no websockets or streaming.
// streaming makes safari spin, and websockets hurt chrome.**
'xdr-polling', 'xhr-polling', 'iframe-xhr-polling', 'jsonp-polling' ]});https://stackoverflow.com/questions/10128371
复制相似问题