My application works fine in localhost with socket.io using websockets and xhr-polling, and it works with xhr polling in heroku, but since heroku provided websocket support, I cannot get it to work using websockets.
My Chrome console shows this message:
WebSocket connection to 'ws://<myherokuapp>.herokuapp.com/socket.io/1/websocket/HBWE2BFvHahlSWk5ppHP' failed: Unexpected response code: 503
I have already enabled websocket labs.
Is there any working websocket example using socket.io?
source share