Bubbles/foam in the eye and a swollen eyelid can be signs of a chronic respiratory sinus infection such as mycoplasma gallisepticum or MG. Testing could confirm it. An eye injury from a peck might be a problem if she is acting normally. You can clean the eye with saline eye wash, use a warm wet compress to remove any crusty drainage,) and apply a small dab of Terramycin eye ointment 2-3 times a day into the eye. Plain Neosporin Or Triple Antibiotic Ointment will do if you cannot find Terramycin at your feed store. Tylosin and a few other antibiotics can treat MG, but she will be a carrier.