Home

Awesome

Event Hooks - Meteor Smart Package

endorse

Provides hooks for various user-triggered events.

API

Currently, all API methods on the server take a userId argument.

Initialization

Options

Options are specified on the client side as an argument (object) in the init method.

How to use?

  1. Install meteorite
  2. mrt add event-hooks
  3. Add Hooks.init() to your Meteor.startup inside of a file inside your client/ directory or inside of an if(Meteor.isClient) block.
if(Meteor.isClient){
	Meteor.startup(function(){
		Hooks.init();
	});
}

That's it!