ecto/bolt — pull request #2 by apeace (2011-10-21 23:40:25+00:00)
Title: Allow multiple connections

Don't know if you'll like this, but this is how I would prefer to use bolt in my apps. There is no connect() or name() method--a config object is passed in to instantiate a "mesh" object. The mesh object only has on() and emit() methods.

This would mean that, in the same JS file, you could connect to multiple different servers, or the same server under multiple names. With the current module, this is impossible.

Also gets rid of the `(function(){` wrapper, which doesn't add security in node modules.

I tested this quickly, but not very much. I guess tests are the next thing that bolt needs :P