I refactored the socket.io server and the controller socket. Functionality isn't any better, but it's ready to connect to the display now.