updateData method

void updateData()

Updates the graph using addMessage with the latest data from metrics.

Implementation

void updateData() {
	if (!isListening) return;
	addMessage(metrics.data.wrap());
	notifyListeners();
}