{"action":"opened","issue":{"url":"https://api.github.com/repos/benjaminapetersen/angular-simple-pubsub/issues/3","repository_url":"https://api.github.com/repos/benjaminapetersen/angular-simple-pubsub","labels_url":"https://api.github.com/repos/benjaminapetersen/angular-simple-pubsub/issues/3/labels{/name}","comments_url":"https://api.github.com/repos/benjaminapetersen/angular-simple-pubsub/issues/3/comments","events_url":"https://api.github.com/repos/benjaminapetersen/angular-simple-pubsub/issues/3/events","html_url":"https://github.com/benjaminapetersen/angular-simple-pubsub/issues/3","id":135785972,"number":3,"title":"add channel history","user":{"login":"benjaminapetersen","id":280512,"avatar_url":"https://avatars.githubusercontent.com/u/280512?v=3","gravatar_id":"","url":"https://api.github.com/users/benjaminapetersen","html_url":"https://github.com/benjaminapetersen","followers_url":"https://api.github.com/users/benjaminapetersen/followers","following_url":"https://api.github.com/users/benjaminapetersen/following{/other_user}","gists_url":"https://api.github.com/users/benjaminapetersen/gists{/gist_id}","starred_url":"https://api.github.com/users/benjaminapetersen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/benjaminapetersen/subscriptions","organizations_url":"https://api.github.com/users/benjaminapetersen/orgs","repos_url":"https://api.github.com/users/benjaminapetersen/repos","events_url":"https://api.github.com/users/benjaminapetersen/events{/privacy}","received_events_url":"https://api.github.com/users/benjaminapetersen/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2016-02-23T16:26:23Z","updated_at":"2016-02-23T16:26:23Z","closed_at":null,"body":"internally can store a history for each channel.  Should set a default message limit of 10 or something reasonable, but configure via provider.  \r\n\r\n```javascript\r\n// conceptual\r\npubsub.setMaxHistory(6); // override 10\r\npubsub.setMaxHistory('channelName', 7); // this channel could get more....\r\n```\r\nWould need ways to access history:\r\n```javascript\r\npubsub.subscribe('channel', playBackBool, maxPlaybackNumber);  // could access history to a certain max on subscribe this way\r\n\r\npubsub.history('channel', maxNumber); // or could explicitly request from a channel history this way.\r\n```\r\n"}}