!isSimulation vs isServer


Quick question: The guide mentions one should use !this.isSimulation for code that should only run on the server inside a method.
I wonder if there’s any difference/advantage over Meteor.isServer ?


When you define a method, the method source code will be run on the client initially, it’s true. But in the context of a Meteor Method, the technical term for this is a Simulation, because it is simulating what the server response will be. I’d be surprised if, in practice, you’d find the two variables to ever have different values. It’s just helpful to understand what a simulation is to see why isSimulation is used instead of isClient