func (l *HTTPStats) Serve(establish mqtt.EstablishFunc) error {
	if l.tls != nil {
		return l.httpServer.ServeTLS(l.listen, "", "")
	} else {
		return l.httpServer.Serve(l.listen)
	}
}
// Serve starts listening for new connections and serving responses.
Serve starts listening for new connections and serving responses.
// Serve starts listening for new connections and serving responses .
func (l *HTTPStats) Serve(establish mqtt.EstablishFunc) error {
	if l.tls != nil {
		return l.httpServer.ServeTLS(l.listen, "", "")
	} else {
		return l.httpServer.Serve(l.listen)
	}
}
func ( l * HTTPStats ) Serve ( establish mqtt . EstablishFunc ) error { if l . tls != nil { return l . httpServer . ServeTLS ( l . listen , " " , " " ) } else { return l . httpServer . Serve ( l . listen ) } }
Serve starts listening for new connections and serving responses.
Serve starts listening for new connections and serving responses .