code: func (nc *Conn) Stats() Statistics {
  	// Stats are updated either under connection's mu or subsMu mutexes.
  	// Lock both to safely get them.
  	nc.mu.Lock()
  	nc.subsMu.RLock()
  	stats := Statistics{
  		InMsgs:     nc.InMsgs,
  		InBytes:    nc.InBytes,
  		OutMsgs:    nc.OutMsgs,
  		OutBytes:   nc.OutBytes,
  		Reconnects: nc.Reconnects,
  	}
  	nc.subsMu.RUnlock()
  	nc.mu.Unlock()
  	return stats
  }
docs: // Stats will return a race safe copy of the Statistics section for the connection.