Thick discharge

This discharge came out of me earlier. It was clear, thick and bubbly. Could you all tell me what the cause of this is or why I would be doing this?