humbroll
humbroll

Reputation: 347

I want to retrieve all channel name that I subscribing now.

I've have subscribe multiple channels at a time. I want to retrieve all channel name that I subscribing now.

How can i do that?

Upvotes: 1

Views: 54

Answers (1)

Didier Spezia
Didier Spezia

Reputation: 73216

Redis does not return this list. But you can maintain it by yourself. Each time you subscribe, you can add the channel to a set. Each time you unsubscribe, you remove the channel from the set.

There is no need to do something on server-side, when it can easily be done on client-side.

Upvotes: 1

Related Questions