spdy-http2 / node-spdy

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

How to get streamID from pushed streams? #192

Closed gujason721 closed 8 years ago

gujason721 commented 9 years ago

In a node-spdy client, how can I get the streamID from pushed streams?

agent.on('push', function(stream) { }

I tried streamID stated in the readme, which doesn't work (console.log('stream id is %s',stream.streamID);).

Also when printing out the whole stream object, in _spdyState, I can see the field for id, and associated id, and I'm wondering what's the proper method for extracting these information?

indutny commented 8 years ago

Sorry, there is no API for this, and now this information is even deeper in the internals!