title: It says listener must be a function, and idk how to fix
body: <p>Yeah so I am watching a video series by rm2kdev on making an mmorpg, and I got a certain point where I had this.</p>
  
  <pre><code>require(__dirname + '/Resources/config.js');
  var fs = require('fs');
  var net = require('net');
  require('./packet.js')
  //1. load the initializers
  var init_files = fs.readdirSync(__dirname + "/Initializers");
  init_files.forEach(function(initFile){
  console.log('Loading Initializer: ' + initFile);
  require(__dirname + "/Initializers/" + initFile);
  });
  //2. load data models
  var model_files = fs.readdirSync(__dirname + "/Models");
  model_files.forEach(function(modelFile){
  console.log('Loading Model: ' + modelFile);
  require(__dirname + "/Models/" + modelFile);
  });
  //3. load game maps data
  maps = {};
  var map_files = fs.readdirSync(config.data_paths.maps);
  map_files.forEach(function(mapFile){
  console.log('Loading Map: ' + mapFile);
  var map = require(config.data_paths.maps + mapFile);
  maps[map.room] = map
  });
  //4. initiate the server and listen to the internets
  net.createServer(function(socket){
  console.log("socket connected");
  var c_inst = new require('./client.js');
  var thisClient = new c_inst();
  thisClient.socket = socket;
  thisClient.initiate();
  socket.on('error', thisClient.error);
  socket.on('end', thisClient.end);
  socket.on('data', thisClient.data);
  }).listen(config.port, '127.0.0.1');
  console.log("Initialize Completed, Server running on port: " + config.port +        "   for environment: " + config.environment);
  </code></pre>
  
  <p>This is my server.js file, and ik the // is a comment. I kept it there. When I run the server, everything runs fine. But when I run the client, it says that the listener must be a function, and idk how to fix that and I can't find the answer on the interwebs. So some help would be very nice.</p>