Pain pain pain

Monica

Help..i am 9 months today and i started getting contraction last night at around 5 they were only 10 minutes apart but irregular but i went to the er because of the pain i was in they sent me home and ended up in the er again at 1 in the morning with contractions that the nurse says were 2 to 7 minutes apart but they were irregular ...this pain hasn't stopped since i came home at 4 i can't even sleep now I'm having like a thick mucus discharge (tmi sorry) no blood .. does anyone know what this is ? am i going into labor soon? sorry