replace http to ws