Forgot to add SocketController.js to public/controllers. This fix works now.