Add progressUrl

we should test that separately (in `index_test.js`) and test that in case of https we return wss with the right port. (this goes along with the function factorization).