func (ps *PubSub) UnsubscribeAll(cs stypes.Client) error {
	subs, err := ps.GetSubscriptions(cs)
	if err != nil {
		return err
	}
	return ps.Unsubscribe(cs, subs...)
}
// Unsubscribes a given client from any subscriptions it's subscribed to
Unsubscribes a given client from any subscriptions it's subscribed to
// Unsubscribes a given client from any subscriptions it ' s subscribed to
func (ps *PubSub) UnsubscribeAll(cs stypes.Client) error {
	subs, err := ps.GetSubscriptions(cs)
	if err != nil {
		return err
	}
	return ps.Unsubscribe(cs, subs...)
}
func ( ps * PubSub ) UnsubscribeAll ( cs stypes . Client ) error { subs , err := ps . GetSubscriptions ( cs ) if err != nil { return err } return ps . Unsubscribe ( cs , subs ... ) }
Unsubscribes a given client from any subscriptions it's subscribed to
Unsubscribes a given client from any subscriptions it ' s subscribed to