Last Updated: February 25, 2016
·
852
· potatopi

OpenShift WebSocket Preview

If by the time you're reading this WebSockets are still in the preview stage for OpenShift (meaning socket.io reverts to XHR-Long-polling in your app), simply modify your socket.io connect URL to include port 8443 for wss:// connections, or port 8000 for ws:// connections.

<script src="https://myApp-myNameSpace.rhcloud.com:8443/socket.io/socket.io.js"></script>

io.connect('https://myApp-myNameSpace.rhcloud.com:8443');