subscribe method

Future<void> subscribe(
  1. List<String> channels
)

Subscribes the client to the specified channels.

Once the client enters the subscribed state it is not supposed to issue any other commands, except for additional SUBSCRIBE, PSUBSCRIBE, UNSUBSCRIBE and PUNSUBSCRIBE commands.

Implementation

Future<void> subscribe(List<String> channels) async {
  await tier1.subscribe(channels);
}