pushd
pushd copied to clipboard
listing subscribers to an event
Is it possible to list subscribers to an event? How?
I also would like to know how to do this please?
Is this possible? I am also interested in this
:+1:
:+1:
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
}