psubscribe method

Stream<Psubscribe> psubscribe(
  1. List<String> pattern
)

------------------------------ PubSub ------------------------------ psubscribe

Implementation

/// psubscribe
Stream<Psubscribe> psubscribe(List<String> pattern) {
  Stream<RespType> stream = (RespCommandsTier1(_client!).psubscribe(pattern));

  return stream.map((resp) {
    final result = resp.toArray().payload;
    return Psubscribe.fromResult(result);
  });
}