Refactored socket logic in app to exist within sockets/index