title: TypeError: dest.end is not a function
body: <p>I am trying to use HTTP/2. My <strong>express</strong> version is 5.0.0-alpha.2, <strong><a href="https://github.com/molnarg/node-http2" rel="nofollow noreferrer">http2</a></strong> version is 3.3.4.</p>
  
  <p>I suppose <strong>http2</strong> should <a href="https://stackoverflow.com/questions/28639995/node-js-server-and-http-2-2-0-with-express-js">work well with express 5</a>.</p>
  
  <pre><code>const http2 = require('http2');
  // const http2 = require('spdy');  // using spdy package here, everything works perfect
  
  const options = {
    key: fs.readFileSync(path.join(__dirname, 'private', 'server.key')),
    cert: fs.readFileSync(path.join(__dirname, 'private', 'server.crt'))
  };
  
  const server = http2
    .createServer(options, app)
    .listen(3000, err =&gt; {
      if (err) throw new Error(err);
  
      // I can see "Listening..." message, which means the server starts running well.
      console.log('Listening...');
    });
  </code></pre>
  
  <p>The server starts running well, but when I open client website, it gives me this error in the terminal:</p>
  
  <blockquote>
  <pre><code>_stream_readable.js:512
      dest.end();
           ^
  
  TypeError: dest.end is not a function
      at Stream.onend (_stream_readable.js:512:10)
      at Stream.g (events.js:286:16)
      at emitNone (events.js:91:20)
      at Stream.emit (events.js:185:7)
      at endReadableNT (_stream_readable.js:975:12)
      at _combinedTickCallback (internal/process/next_tick.js:74:11)
      at process._tickCallback (internal/process/next_tick.js:98:9)
  </code></pre>
  </blockquote>