spdy-http2 / node-spdy

SPDY server on Node.js
2.81k stars 196 forks source link

Client: event to signal no more push streams #143

Closed jonathanong closed 10 years ago

jonathanong commented 10 years ago

Is there one? I want to know when all the push streams for this request have been pushed.

indutny commented 10 years ago

There is no such event, and I don't really want to add one. Couldn't your track it yourself?

jonathanong commented 10 years ago

ah ok. i'm not even sure if it's possible. i guess i could if i handled the server pushes as well, but not necessarily in general. it's kind of like asking to handle a stream's data events without an end event.

indutny commented 10 years ago

Are we talking about client or server mode?

jonathanong commented 10 years ago

from the client, there's req.on('push') but no req.on('pushend') or similar to tell the client that there will be no more push streams.

jonathanong commented 10 years ago

oh wait i'm blind. the push events are on the agent. nevermind.

jonathanong commented 10 years ago

didn't realize push streams are entirely separate from the regular req/res stuff