Details
-
Sub-task
-
Status: Closed
-
Major
-
Resolution: Fixed
-
None
Description
Implement the NUMSUB subcommand.
Acceptance Criteria
The NUMSUB subcommand has been implemented along with unit tests to assert that the subcommand correctly returns the number of subscribers (not counting clients subscribed to patterns) for the specified channels.
Return value
Array reply: a list of channels and number of subscribers for every channel. The format is channel, count, channel, count, ..., so the list is flat. The order in which the channels are listed is the same as the order of the channels specified in the command call.
Note that it is valid to call this command without channels. In this case it will just return an empty list.