title: TypeError: app.get is not a function
body: <p>I'm trying to use express in a prototype</p>
  
  <pre><code>function ioServer() {
  
  }
  
  module.exports = ioServer;
  
  ioServer.prototype.start = function() {
      var app       = require('express')
      var http      = require('http').Server(app)
      var io        = require('socket.io')(http)
  
      app.get('/', function(req, res) {
          var outPut = ""
          res.sendFile(__dirname + './client/index.html')
      })
  
      http.listen(3000, function(port) {
          console.log('Listening on port, ' + 3000)
      })
  }
  </code></pre>
  
  <p>But when I use it It throws the error <code>TypeError: app.get is not a function</code> When I remove the prototype part it works.</p>