code: func (c *client) getSubsCopy() []*subState {
  	subs := make([]*subState, len(c.subs))
  	copy(subs, c.subs)
  	return subs
  }
docs: // getSubsCopy returns a copy of the client's subscribers array.
  // At least Read-lock must be held by the caller.