eee-c / express-spdy Goto Github PK
View Code? Open in Web Editor NEWSPDY-ize express.js sites.
Home Page: https://github.com/eee-c/express-spdy
SPDY-ize express.js sites.
Home Page: https://github.com/eee-c/express-spdy
The express-spdy server sends a connection:keep-alive header in the syn_reply frame, even though the original syn_stream did not have a connection header. As far as I know, connection headers are useless in SPDY.
t=1312475149318 [st= 0] SPDY_SESSION_SYN_STREAM
--> flags = 1
--> accept: text/html,application/xhtml+xml,application/xml;q=0.9,/;q=0.8
accept-charset: ISO-8859-1,utf-8;q=0.7,*;q=0.3
accept-encoding: gzip,deflate,sdch
accept-language: en-US,en;q=0.8
host: sfo-lpwng:3000
method: GET
scheme: https
url: /
user-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_6_7) AppleWebKit/535.1 (KHTML, like Gecko) Chrome/13.0.782.107 Safari/535.1
version: HTTP/1.1
--> id = 1
t=1312475149323 [st= 5] SPDY_SESSION_SYN_REPLY
--> flags = 0
--> connection: keep-alive
content-length: 689
content-type: text/html
status: 200 OK
version: HTTP/1.1
x-powered-by: Express
--> id = 1
nodejs v0.5.9 express-unstable v2.4.3 spdy v0.1.2 express-spdy v0.0.4 zlibcontext v1.0.7
when I run "node app.js", I got
Error: Cannot find module './zlib_bindings'
at Function._resolveFilename (module.js:334:11)
at Function._load (module.js:279:25)
at Module.require (module.js:357:17)
at require (module.js:368:17)
at Object. (/home/admin1/lmcnatr/helloworld/ex-spdy2/node_modules/express-spdy/node_modules/spdy/node_modules/zlibcontext/lib/zlib.js:2:18)
at Module._compile (module.js:432:26)
/node_modules/express-spdy/node_modules/spdy/node_modules/zlibcontext/lib/zlib.js
module.exports = require('./zlib_bindings');
Any idea?
Thank you
nodejs v.0.6.0, express-spdy v0.1.0
express v2.5.0, connect-spdy v0.1.0, spdy v0.1.0
var express = require('express-spdy')
, fs = require('fs')
, createPushStream = require('spdy').createPushStream
, host = "https://localhost:3000/"
;
node.js:201
throw e; // process.nextTick error, or 'error' event on first tick
^
Error: Cannot find module 'spdy'
it works if I use the following patch
createPushStream = require('./node_modules/express-spdy/node_modules/spdy').createPushStream
What is the right path?
Thank you
By the way, do you have an example of SPDY server push like a "hello world" to show that data is constantly push to Client (source code, html, js, css, ...)? Appreciated.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.