Does Meteor SockJS use as the main mechanism of interaction between the browser and the server?

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

Based on some commit messages, suppose Meteor uses SockJS polling as the primary mechanism for interaction between the browser and server. It is right?

+6
source share
1 answer

It looks like this. But it does not use web ports or streaming, as indicated 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' ]}); 
+2
source

Source: https://habr.com/ru/post/913060/


All Articles