title: Code in electron renderer process not working after packaging
body: <p>code from index.html:</p>
  
  <pre><code>&lt;!DOCTYPE html&gt;
  &lt;html&gt;
    &lt;head&gt;
      &lt;meta charset="UTF-8"&gt;
      &lt;title&gt;Hello World!&lt;/title&gt;
    &lt;/head&gt;
    &lt;body&gt;
      &lt;h1&gt;Hello World!&lt;/h1&gt;
      &lt;!-- All of the Node.js APIs are available in this renderer process. --&gt;
      We are using Node.js &lt;script&gt;document.write(process.versions.node)&lt;/script&gt;,
      Chromium &lt;script&gt;document.write(process.versions.chrome)&lt;/script&gt;,
      and Electron &lt;script&gt;document.write(process.versions.electron)&lt;/script&gt;.
    &lt;script src="./renderer.js"&gt;&lt;/script&gt;
    &lt;/body&gt;
  
  &lt;form&gt;&lt;input&gt;&lt;/form&gt;&lt;div&gt;&lt;/div&gt;
  &lt;/html&gt;
  </code></pre>
  
  <p>code in renderer.js:</p>
  
  <pre><code>var io = require('socket.io')();
  var os = require('os');
  var fs = require('fs');
  
  io.listen(6000);
  io.on('connection', function (socket) {
    socket.on('my socketId', function (data) {
      socket.emit('client connect', {
        nickname: os.hostname()
      });
    });
  });
  </code></pre>
  
  <p>Problem: It works fine using <code>electron .</code> running in browser. But client got no respond after packaging by electron-packager.</p>
  
  <p>Thank you very much for any help!!</p>