I am trying to deploy my nodejs app on heroku. I cannot get the websocket connection to establish. I have read everything I could find, tried every example and none of them
Well I figured it out. Here is what you should know:
My client configurations looked like this:
var host = location.origin.replace(/^http/, 'ws');
this.connection = new WebSocket(host);
But here is the kicker. On the terminal I used the following command:
heroku labs:enable websockets
And voila, it works! I hope this helps someone.