Waters leaking at 31weeks!

I don’t know if my waters leaked or anything, I was laid in bed and i felt a dribble of water and it wet my bed. Went to the toilet peed and wiped and had more mucusy discharge (been having it for about 4 weeks). I’ve put a pad on about 30mins ago and have felt “leaking” but pad is dry. What should I do? I had light period type cramps this morning and then nothing and now my tummy goes hard and then goes soft again every 10 mins or so. I’m 31 weeks