SSubscribe Subscribes the client to the specified shard channels. Channels can be omitted to create empty subscription.
(ctx context.Context, channels ...string)
| 1615 | // SSubscribe Subscribes the client to the specified shard channels. |
| 1616 | // Channels can be omitted to create empty subscription. |
| 1617 | func (c *Client) SSubscribe(ctx context.Context, channels ...string) *PubSub { |
| 1618 | pubsub := c.pubSub() |
| 1619 | if len(channels) > 0 { |
| 1620 | _ = pubsub.SSubscribe(ctx, channels...) |
| 1621 | } |
| 1622 | return pubsub |
| 1623 | } |
| 1624 | |
| 1625 | //------------------------------------------------------------------------------ |
| 1626 |
nothing calls this directly
no test coverage detected