title: Socket.configure Undefined is not a function error
body: <hr>
  
  <p><strong>Note:</strong> I am using <em>Mac OS 10.10 Yosemite</em></p>
  
  <p><strong>Important Note:</strong> None of the other questions and answers have worked for me.</p>
  
  <p>I am following a tutorial which will have it so that I could have a multiplayer game. There is a file, which I have to download, which has a game.js file that I need to add this code into:</p>
  
  <hr>
  
  <p><strong>Note:</strong> I correctly downloaded socket.io in the correct directory.</p>
  
  <pre><code>var util = require("util"),
      io = require("socket.io").listen(80);
  
  var socket,
      players;
  
  function init() {
      players = [];
      socket = io.listen(8000);
      socket.configure(function() {
          socket.set("transports", ["websocket"]);
          socket.set("log level", 2);
      });
  };
  
  init();
  </code></pre>
  
  <p>But when I run <strong><em>node game.js</em></strong>, I get an error that looks like this:</p>
  
  <p><strong>Note:</strong> The Robhawks-mozzilla-festival-92336f2 folder is the folder that has all of the files in it</p>
  
  <hr>
  
  <p><a href="https://i.stack.imgur.com/vkoCz.png" rel="noreferrer"><img src="https://i.stack.imgur.com/vkoCz.png" alt=""></a></p>
  
  <hr>
  
  <p>Why is the socket.configure messing up? Also, how can I fix it?</p>