" can be caused by many things from dry eyes
, inflammations, eyelid irritations, viruses, bacteria
, malpositioned eyelids, poor blink mechanism, environmental, chemical, etc.
These all have varied treatments. Discharge, like mucous, and tearing are protective mechanisms or ways your eyes respond to irritation. Infections produce much thick discharge. Your eyes may just be dry.