adds socket connection for heroku