Sleep is not itself a visible bodily discharge, but certain postures reduce bodily control and make the continuity of purity uncertain. Lying and reclining sleep are treated differently from dozing in a firmly seated position.
The physical posture and dependence on support matter.