eugef / node-mocks-http

Mock 'http' objects for testing Express routing functions
Other
747 stars 131 forks source link

Response "close" event is not emitted #253

Closed jakeorr closed 2 years ago

jakeorr commented 2 years ago

Passing an event emitter as in the example here: https://github.com/howardabrams/node-mocks-http#createresponse I am seeing the "end" event emitted, but not a "close" event. Is there a reason why "close" isn't triggered? Do you think it should be? This came up while looking at a fix for next-connect and allowing it to detect when the response is complete. https://github.com/hoangvvo/next-connect/pull/178

github-actions[bot] commented 2 years ago

Stale issue message