fixed socket server for deployment to heroku