{"comment":{"created_at":"2011-10-22T13:48:46Z","body":"Well, these two are equivalent:\r\n\r\n````javascript\r\nvar secret_obj = { a: 2, b: 4 }; // can't be accessed from outside module\r\nmodule.exports = { b: secret_obj.b } // export just the one property\r\n````\r\n\r\n````javascript\r\n(function(){\r\nvar secret_obj = { a: 2, b: 4 }; // can't be accessed from outside module\r\nmodule.exports = { b: secret_obj.b } // export just the one property\r\n})()\r\n````\r\n\r\nAlso, the upper-cased DELIMITER is just a style thing, denoting a \"constant\" :P","updated_at":"2011-10-22T13:48:46Z","url":"https://api.github.com/repos/ecto/bolt/issues/comments/2490118","id":2490118,"user":{"avatar_url":"https://secure.gravatar.com/avatar/95a7853aca94fec1357dc15df426ec42?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","gravatar_id":"95a7853aca94fec1357dc15df426ec42","url":"https://api.github.com/users/apeace","id":78548,"login":"apeace"}},"action":"created","issue":{"number":2,"created_at":"2011-10-21T23:40:25Z","pull_request":{"diff_url":"https://github.com/ecto/bolt/pull/2.diff","patch_url":"https://github.com/ecto/bolt/pull/2.patch","html_url":"https://github.com/ecto/bolt/pull/2"},"body":"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.\r\n\r\nThis 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.\r\n\r\nAlso gets rid of the `(function(){` wrapper, which doesn't add security in node modules.\r\n\r\nI tested this quickly, but not very much. I guess tests are the next thing that bolt needs :P","comments":3,"title":"Allow multiple connections","updated_at":"2011-10-22T13:48:46Z","url":"https://api.github.com/repos/ecto/bolt/issues/2","id":2020672,"assignee":null,"milestone":null,"closed_at":null,"user":{"avatar_url":"https://secure.gravatar.com/avatar/95a7853aca94fec1357dc15df426ec42?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","gravatar_id":"95a7853aca94fec1357dc15df426ec42","url":"https://api.github.com/users/apeace","id":78548,"login":"apeace"},"html_url":"https://github.com/ecto/bolt/issues/2","labels":[],"state":"open"},"legacy":{"issue_id":2020672,"comment_id":2490118}}