play-co / hookbox

HookBox is a Comet server and message queue that tightly integrates with your existing web application via web hooks and a REST interface.
http://hookbox.org
MIT License
284 stars 23 forks source link

Multi publish #57

Closed dlg closed 14 years ago

dlg commented 14 years ago

Hi Michael,

Hookbox looks like the most amazing thing since XMLHttpRequest. Nice work.

For my use-case, I need the ability to publish to a large number of channels, each with a small number of potential users. So, I added publish_multi. I'd love it if this (or equivalent--I'm certainly not wedding to my impl) could make it into the main tree.

Thanks.

Also, rather than run it as a command-line program, I'd like to invoke it in my management scripts (that mange virtualenvs, logging, etc). I've had to hack it rather badly to do this. Any chance that Hookbox could be made available as a library too? I.e., instead of just hookbox.start.main() which uses sys.argv, if there was a hookbox.start.start_hookbox(config_kwargs)?

Thanks again, Dan

mcarter commented 14 years ago

Great, I like this.

As to the libraryification of hookbox, I currently do somethign lke: import sys; sys.argv = [ 'hookbox' '-a', 'pass', 'etc. ]; hookbox.start.main();

Of course I'll merge any reasonable pull request that exposes this more reasonably.

mcarter commented 14 years ago

I'm pretty sure this was pulled in completely; I'm therefore closing this pull request.