App deployed on meteor.com saying it's connected when it's not


#1

Hi, I am deploying my app to meteor.com using the usual “meteor deploy” command and I have added a little UI indicator to the app to show the status of the connection using Meteor.status.

The status indicator does seem to work fine - when the app is re-deployed, it goes through the various states as you would expect. But during normal operation of the app, every now and then meteor.com seems to go down while Meteor.status() still reports it is ‘connected’.

I am currently using the following code to get the status for the UI indicator:

Tracker.autorun(function () {
    var status = Meteor.status().status;
    console.log("** STATUS CHANGE: " + status);
    Session.set('connectionStatus', status);
});

Is there anything else I can check to get more detailed information about the state of the connection or should this be enough?


#2

Turns out this is only an issue on meteor.com. I set-up a Modulus instance and everything is fine on there, so lesson here is to not use meteor.com for anything other than… well for anything really.