Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Does Meteor use SockJS as it's main browser-server communications mechanism?

I noticed the Meteor stream package here contains SockJS: https://github.com/meteor/meteor/tree/master/packages/stream

Based on some commit messages, I'g guess Meteor use SockJS polling as it's main browser-server communications mechanism. Is that correct?

like image 271
Chris Sears Avatar asked Apr 12 '12 17:04

Chris Sears


1 Answers

Looks like it. But it doesn't use websockets or streaming as commented in the code right now:

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'      ]});
like image 56
Richard Anthony Freeman-Hein Avatar answered Sep 20 '22 13:09

Richard Anthony Freeman-Hein