Hi @DavidTimms, thanks for sharing this. I deployed this behind haproxy in a docker container and used the OPENSHIFT_INTERNAL_PORT to choose my own port.
docker run -d -e OPENSHIFT_INTERNAL_PORT=3000 --expose 3000 -p --workdir /app -v $PWD:/app node node /app/server.js
So I have the backend port using 3000 but in the front end it's just being served over 443. So instead of changing client.js to match the frontend port; could we change it to use window.location.port?