Does not work on heroku for some reason. Revert "Add a layer of security for sockets."

This reverts commit 1606a850db0994de527e920f18c76be0898beb06.