{"action":"opened","issue":{"url":"https://api.github.com/repos/mloughran/em-hiredis/issues/37","labels_url":"https://api.github.com/repos/mloughran/em-hiredis/issues/37/labels{/name}","comments_url":"https://api.github.com/repos/mloughran/em-hiredis/issues/37/comments","events_url":"https://api.github.com/repos/mloughran/em-hiredis/issues/37/events","html_url":"https://github.com/mloughran/em-hiredis/issues/37","id":55792285,"number":37,"title":"pubsub command","user":{"login":"adityagodbole","id":1061426,"avatar_url":"https://avatars.githubusercontent.com/u/1061426?v=3","gravatar_id":"","url":"https://api.github.com/users/adityagodbole","html_url":"https://github.com/adityagodbole","followers_url":"https://api.github.com/users/adityagodbole/followers","following_url":"https://api.github.com/users/adityagodbole/following{/other_user}","gists_url":"https://api.github.com/users/adityagodbole/gists{/gist_id}","starred_url":"https://api.github.com/users/adityagodbole/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/adityagodbole/subscriptions","organizations_url":"https://api.github.com/users/adityagodbole/orgs","repos_url":"https://api.github.com/users/adityagodbole/repos","events_url":"https://api.github.com/users/adityagodbole/events{/privacy}","received_events_url":"https://api.github.com/users/adityagodbole/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-01-28T18:04:13Z","updated_at":"2015-01-28T18:04:13Z","closed_at":null,"body":"The client uses the `pubsub` method to create and return the pubsub client. This masks the redis PUBSUB command.\r\nThere are two ways I can think of around this\r\n1. Change the name of the `pubsub` method to something like `pubsub_client`\r\n2. Pass `self` to `PubsubClient.new` in the `pubsub` method and keep a reference to it in the `Pubsubclient` object. Forward the call to this `Client` object in a method called `pubsub` on the `PubsubClient` object."}}