Ocean Foam node handles with foam particles in the ocean dynamics. It consists of an emitter and a solver. It needs spectrum information from Ocean Spectrum to simulate.
You can limit foam emission to camera space to improve performance. You can also adjust the parameters in conditions to tweak the appearance of the foam.
Please check Ocean Foam for more information.