http2-push-example
http2-push-example copied to clipboard
Node.js changed HTTP2 API
I was getting the following error:
...\http2-push-example\src\server.js:28
pushStream.respondWithFD(file.fileDescriptor, file.headers)
^
TypeError: Cannot read property 'respondWithFD' of null
at stream.pushStream (...\http2-push-example\src\server.js:28:16)
at process._tickCallback (internal/process/next_tick.js:63:19)
Apparently the HTTP2 API of Node was changed in 9.4.
I have the same issue
see this #8
Need merge: https://github.com/RisingStack/http2-push-example/pull/7