Real time monitoring of cure and gelification of a thermoset matrix