Added code to keep alive the websocket connection on Heroku servers