Heroku support
Fix for Heroku Websockets compatibility