When do client simulations happen?

Do they happen when we use collection.insert calls on the client (without using Meteor methods), or do simulations only happen when collection.insert (etc) methods are called within Meteor methods?

F.e. which of the following two examples run simulations:

example 1:

someCollection.insert({...}) // simulation happens?

example 2:

  someMethod: function(data) {
    someCollection.insert(data) // simulation happens?

Meteor.call('someMethod', {...})
  • Simulations happen on any method that has a client-side version (this client-side version is also called a “stub”).
  • You can consider insert as a method with a client-side version.