spdy-http2 / node-spdy

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

Server forwards `ping` event from the transports Connection. #353

Open AdamMagaluk opened 5 years ago

AdamMagaluk commented 5 years ago

Pass the ping event on the transports connection to the server's EventEmitter as the _ping event. The event passes the client requests socket to allow users to identify the the socket sending the ping request.

Note: I choose _ping with the underscore to identify that the typical use case is internal and unlikely to be used. Similar to https://github.com/spdy-http2/node-spdy/blob/master/lib/spdy/agent.js#L71