These are serious symptoms and you need to ensure that both of them do not suffer from allergies that may have triggered the symptoms.
The attack that you describe is sort of something like airway obstruction
with saliva as the 'foam' and ensure that they have an anaphylaxis
management plan in place.
If this was after a food they had ingested, a food allergy
definitely needs excluding.
Happy to elaborate if you have further issues.