Help?

So, boyfriend and I had sex about 5 maybe 6 days ago? It was unprotected, but he pulled out. Today, (about five minutes ago) I went to the bathroom and a long thick stream of discharge came out with a hard bubble in it. What was it? I'm thinking of the worst possible things. What should I do? My period is suppose to start in 4 days.