node.js - Nodejs - SPDY push on request error -


I'm having trouble launching my node app I get "type error": method 'undefined' error Here's my code:

  spdy.createServer (credentials, app) .listen (app.get ('port)), function (rik, ridge) {res.push} ('Public / js /bootstrap.min.js', {' content-type ':' application / javascript '}, function (mistake, stream) {stream.end (' Warning (Hello from push stream! ')') ;}); Res.push ('public / js / jquery.min.js', {'content-type': 'application / javascript'}, function (mistake, stream) {stream.end ();}); Res.push ('public / css / bootstrap.min.css', {'content-type': 'text / css'}, function (mistake, stream) {stream.end ();}); // Main response body type and finish stream res.end ('Hello World!'); Console.log ('Express HTTPS listening on SPDY server port' + app.get ('port'));};   

I am running SDPY version 1.19.2 and NodesJS version 0.10.25.

Depending on you, you are working with HTTP / 1.1 to work on HTTP2 / Need to service with SPDY.

Comments

Popular posts from this blog

c - Mpirun hangs when mpi send and recieve is put in a loop -

python - Apply coupon to a customer's subscription based on non-stripe related actions on the site -

java - Unable to get JDBC connection in Spring application to MySQL -