meteor/meteor — pull request #428 by Charuru (2012-10-27 20:38:23+00:00)
Title: Added a hook to livedata detach

I'm not sure where you would add a hooks object so I've left it like this for now. But in general, I would like to see a lot of hooks available in many of meteor's core packages.

`Meteor.hooks` should be created in a new package if going by this code.

Another alternative is `socket.detach.call(socket)` might be a better pattern in terms of providing hooks.

Please, any information on the plan for hooks going into the future will be invaluable. I'll fix this PR as needed.