Water broke or I pee myself

Just went to use the bathroom got up about to walk then saw a gush of water drop down my leg , only to see a lot of discharge thick fall out then I’m having slight cramps, I’m in my late trimester 3rd