pushd icon indicating copy to clipboard operation
pushd copied to clipboard

listing subscribers to an event

Open guglie opened this issue 10 years ago • 5 comments

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

guglie avatar Jun 27 '14 08:06 guglie

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

pmbnecc avatar Jun 21 '15 02:06 pmbnecc

Is this possible? I am also interested in this

akkina9 avatar Aug 13 '15 05:08 akkina9

:+1:

simonihmig avatar Oct 20 '15 15:10 simonihmig

:+1:

dev-marlon avatar Oct 20 '15 15:10 dev-marlon

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
}

jousis9 avatar Mar 17 '16 03:03 jousis9