1

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

Andreas
  • 1,622
  • 14
  • 13

2 Answers2

2

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.

Marcus Riemer
  • 7,244
  • 8
  • 51
  • 76
  • Thanks. I'd love to know what these problems are. I thought websockets are well supported in modern browsers. – Andreas Aug 05 '12 at 19:21
1

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

Marek
  • 3,471
  • 1
  • 16
  • 15
  • Hi, I browsed the sources and found a comment explaining it https://github.com/meteor/meteor/blob/master/packages/stream/stream_client.js#L306-L307. For now I activated sockets locally. The file can be found in `.meteor/local/build/static/packages/stream` (relatively to your projects root) – Andreas Aug 30 '12 at 22:13