{"action":"created","issue":{"url":"https://api.github.com/repos/yoshuawuyts/choo/issues/217","repository_url":"https://api.github.com/repos/yoshuawuyts/choo","labels_url":"https://api.github.com/repos/yoshuawuyts/choo/issues/217/labels{/name}","comments_url":"https://api.github.com/repos/yoshuawuyts/choo/issues/217/comments","events_url":"https://api.github.com/repos/yoshuawuyts/choo/issues/217/events","html_url":"https://github.com/yoshuawuyts/choo/issues/217","id":170078544,"number":217,"title":"subscriptions: object or array?","user":{"login":"ungoldman","id":427322,"avatar_url":"https://avatars.githubusercontent.com/u/427322?v=3","gravatar_id":"","url":"https://api.github.com/users/ungoldman","html_url":"https://github.com/ungoldman","followers_url":"https://api.github.com/users/ungoldman/followers","following_url":"https://api.github.com/users/ungoldman/following{/other_user}","gists_url":"https://api.github.com/users/ungoldman/gists{/gist_id}","starred_url":"https://api.github.com/users/ungoldman/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ungoldman/subscriptions","organizations_url":"https://api.github.com/users/ungoldman/orgs","repos_url":"https://api.github.com/users/ungoldman/repos","events_url":"https://api.github.com/users/ungoldman/events{/privacy}","received_events_url":"https://api.github.com/users/ungoldman/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2016-08-09T04:20:21Z","updated_at":"2016-08-09T11:15:11Z","closed_at":null,"body":"I'm noticing in the choo docs subscriptions is referred to as an **array**: \r\n\r\n```js\r\n  subscriptions: [\r\n    (send, done) => {\r\n      setInterval(() => {\r\n        send('app:print', { payload: 'dog?', myOtherValue: 1000 }, (err) => {\r\n          if (err) return done(err)\r\n        })\r\n      }, 1000)\r\n    }\r\n  ]\r\n```\r\n\r\n> https://github.com/yoshuawuyts/choo#subscriptions\r\n\r\nBut in the barracks docs it's a plain **object** with named keys:\r\n\r\n```js\r\n  subscriptions: {\r\n    emitWoofs: (send, done) => {\r\n      // emit a woof every second\r\n      setInterval(() =>  send('printWoofs', { woof: 'meow?' }, done), 1000)\r\n    }\r\n  }\r\n```\r\n\r\n> https://github.com/yoshuawuyts/barracks#subscriptions\r\n\r\nI've seen it referred to both ways -- so which should it be?\r\n\r\nBonus question: if subscriptions is an object, do key names have any bearing on other aspects (reducers, effects, actions)?"},"comment":{"url":"https://api.github.com/repos/yoshuawuyts/choo/issues/comments/238523460","html_url":"https://github.com/yoshuawuyts/choo/issues/217#issuecomment-238523460","issue_url":"https://api.github.com/repos/yoshuawuyts/choo/issues/217","id":238523460,"user":{"login":"MattMcFarland","id":623545,"avatar_url":"https://avatars.githubusercontent.com/u/623545?v=3","gravatar_id":"","url":"https://api.github.com/users/MattMcFarland","html_url":"https://github.com/MattMcFarland","followers_url":"https://api.github.com/users/MattMcFarland/followers","following_url":"https://api.github.com/users/MattMcFarland/following{/other_user}","gists_url":"https://api.github.com/users/MattMcFarland/gists{/gist_id}","starred_url":"https://api.github.com/users/MattMcFarland/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MattMcFarland/subscriptions","organizations_url":"https://api.github.com/users/MattMcFarland/orgs","repos_url":"https://api.github.com/users/MattMcFarland/repos","events_url":"https://api.github.com/users/MattMcFarland/events{/privacy}","received_events_url":"https://api.github.com/users/MattMcFarland/received_events","type":"User","site_admin":false},"created_at":"2016-08-09T11:15:11Z","updated_at":"2016-08-09T11:15:11Z","body":"Yep I am using an array as well and thought that was the only way "}}
{"actor":{"display_login":"MattMcFarland"}}