fix ws and wss for localhost/prod