title: How can you add a hook to the beginning of all Meteor method calls?
body: <p>For instance, I'd like to throw an error whenever any method is called by clients who are not logged in, and I want to rate limit methods called by logged-in clients. I'm hoping there's a better solution than </p>
  
  <pre><code>Meteor.methods 
  
    foo: -&gt;
      checkLoggedInAndRate()
      ...
  
    bar: -&gt;
      checkLoggedInAndRate()
      ...
  
    ...
  </code></pre>