{"action":"created","issue":{"url":"https://api.github.com/repos/slact/nchan/issues/154","repository_url":"https://api.github.com/repos/slact/nchan","labels_url":"https://api.github.com/repos/slact/nchan/issues/154/labels{/name}","comments_url":"https://api.github.com/repos/slact/nchan/issues/154/comments","events_url":"https://api.github.com/repos/slact/nchan/issues/154/events","html_url":"https://github.com/slact/nchan/issues/154","id":148824325,"number":154,"title":"subscriber subscribe and unsubscribe callbacks","user":{"login":"notedit","id":480864,"avatar_url":"https://avatars.githubusercontent.com/u/480864?v=3","gravatar_id":"","url":"https://api.github.com/users/notedit","html_url":"https://github.com/notedit","followers_url":"https://api.github.com/users/notedit/followers","following_url":"https://api.github.com/users/notedit/following{/other_user}","gists_url":"https://api.github.com/users/notedit/gists{/gist_id}","starred_url":"https://api.github.com/users/notedit/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/notedit/subscriptions","organizations_url":"https://api.github.com/users/notedit/orgs","repos_url":"https://api.github.com/users/notedit/repos","events_url":"https://api.github.com/users/notedit/events{/privacy}","received_events_url":"https://api.github.com/users/notedit/received_events","type":"User","site_admin":false},"labels":[{"id":14652,"url":"https://api.github.com/repos/slact/nchan/labels/feature","name":"feature","color":"63a7ff","default":false}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":28,"created_at":"2016-04-16T06:55:08Z","updated_at":"2016-11-14T20:23:44Z","closed_at":"2016-11-12T18:19:10Z","body":"hi  i know nchan is a   pub/sub server,  but i have to do lots of work to use it in my realtime app.\n\nany plan in user presence and  user  leave callback?\n"},"comment":{"url":"https://api.github.com/repos/slact/nchan/issues/comments/260451435","html_url":"https://github.com/slact/nchan/issues/154#issuecomment-260451435","issue_url":"https://api.github.com/repos/slact/nchan/issues/154","id":260451435,"user":{"login":"slact","id":5745,"avatar_url":"https://avatars.githubusercontent.com/u/5745?v=3","gravatar_id":"","url":"https://api.github.com/users/slact","html_url":"https://github.com/slact","followers_url":"https://api.github.com/users/slact/followers","following_url":"https://api.github.com/users/slact/following{/other_user}","gists_url":"https://api.github.com/users/slact/gists{/gist_id}","starred_url":"https://api.github.com/users/slact/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/slact/subscriptions","organizations_url":"https://api.github.com/users/slact/orgs","repos_url":"https://api.github.com/users/slact/repos","events_url":"https://api.github.com/users/slact/events{/privacy}","received_events_url":"https://api.github.com/users/slact/received_events","type":"User","site_admin":false},"created_at":"2016-11-14T20:23:44Z","updated_at":"2016-11-14T20:23:44Z","body":"yes, `nchan_authorize_request` will fire before `nchan_subscribe_request`. However, I don't really see a use case for having both enabled. Although `nchan_subscribe_request` is more precise (called right after a subscriber subscribes to a channel, whereas `nchan_authorize_request` is called right before), `nchan_authorize_request` can be use just as well to notify your application of a newly subscribed client.\r\n\r\nBut if you wanted to, you could enabled both. In which case, `nchan_authorize_request` fires first, and when Nchan receives a response, `nchan_subscribe_request` is called."}}
{"actor":{"display_login":"slact"}}