Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

listing subscribers to an event #71

Open
guglie opened this issue Jun 27, 2014 · 5 comments
Open

listing subscribers to an event #71

guglie opened this issue Jun 27, 2014 · 5 comments

Comments

@guglie
Copy link
Contributor

guglie commented Jun 27, 2014

Is it possible to list subscribers to an event? How?

@pmbnecc
Copy link

pmbnecc commented Jun 21, 2015

I also would like to know how to do this please?

@akkina9
Copy link

akkina9 commented Aug 13, 2015

Is this possible? I am also interested in this

@simonihmig
Copy link

👍

1 similar comment
@dev-marlon
Copy link

👍

@jousis9
Copy link

jousis9 commented Mar 17, 2016

I have never coded in coffeescript so this is not a proper solution but you can easily list subscribers and not the useless(?) number of members by simply editing the file event.coffee and...
comment out (#) /delete line (20):
.zcard("#{@key}:subs")
write:
.zrange("#{@key}:subs", 0, -1)
3 lines below, if you want, change the string total to subs (or anything to your liking):
info = {subs: results[1]}
Then, the JSON will look like this:

{
  "subs": [
    "RL5WSw8TQ60",
    "cF21MSCNxzM",
    "dExwz1sanV8"
  ],
  "created": 1458156108
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants