PSubscribe subscribes the client to the given patterns. Patterns can be omitted to create empty subscription.
(ctx context.Context, channels ...string)
| 1605 | // PSubscribe subscribes the client to the given patterns. |
| 1606 | // Patterns can be omitted to create empty subscription. |
| 1607 | func (c *Client) PSubscribe(ctx context.Context, channels ...string) *PubSub { |
| 1608 | pubsub := c.pubSub() |
| 1609 | if len(channels) > 0 { |
| 1610 | _ = pubsub.PSubscribe(ctx, channels...) |
| 1611 | } |
| 1612 | return pubsub |
| 1613 | } |
| 1614 | |
| 1615 | // SSubscribe Subscribes the client to the specified shard channels. |
| 1616 | // Channels can be omitted to create empty subscription. |
nothing calls this directly
no test coverage detected