func (l *Websocket) Serve(establish mqtt.EstablishFunc) error {
	l.establish = establish

	if l.tls != nil {
		return l.httpServer.ServeTLS(l.listen, "", "")
	}

	return l.httpServer.Serve(l.listen)
}
// Serve starts waiting for new Websocket connections, and calls the connection
// establishment callback for any received.
Serve starts waiting for new Websocket connections, and calls the connection
establishment callback for any received.
// Serve starts waiting for new Websocket connections and calls the connection // establishment callback for any received .
func (l *Websocket) Serve(establish mqtt.EstablishFunc) error {
	l.establish = establish
	if l.tls != nil {
		return l.httpServer.ServeTLS(l.listen, "", "")
	}
	return l.httpServer.Serve(l.listen)
}
func ( l * Websocket ) Serve ( establish mqtt . EstablishFunc ) error { l . establish = establish if l . tls != nil { return l . httpServer . ServeTLS ( l . listen , " " , " " ) } return l . httpServer . Serve ( l . listen ) }
Serve starts waiting for new Websocket connections, and calls the connection
establishment callback for any received.
Serve starts waiting for new Websocket connections and calls the connection establishment callback for any received .