Thank you! Your feedback has been delivered
Thank you! Your feedback has been sent

Meteor client can't connect to server

At least half of the time, when a client loads my Meteor app, it can't connect to the server.

If I run this in the console:

Deps.autorun(function() {
  console.log(Meteor.status());
});

I can see that the client is connecting, disconnected, reconnecting repeatedly.

enter image description here

If I open the Network tab in Chrome's dev tools I can see that about every second or two, another WebSocket request is made.

enter image description here

What could be causing this?

Note: This question has been originally posted on Stack Overflow by johnny and is now sponsored by CodersClan.

User Gravatar

CodersClan

Posted Oct 16 2013 12:46 UTC

$10


  • meteor
  • 1032 Views

1 Replies


Try disabling WebSockets. Run your meteor app with following env variable.

export DISABLE_WEBSOCKETS=true
User Gravatar

arunoda

Posted Oct 16 2013 13:00 UTC

Add a reply

By posting a reply on CodersClan you agree to our Terms & Conditions