1
0
mirror of https://github.com/Ylianst/MeshAgent synced 2025-12-06 00:13:33 +00:00

Renamed '_eventHook' on EventEmitter to 'newListener' to match node definition

This commit is contained in:
Bryan Roe
2019-02-12 21:40:08 -08:00
parent 9542a14ada
commit 6918c90253
5 changed files with 22 additions and 21 deletions

View File

@@ -207,7 +207,7 @@ function http_digest_instance(options)
// When somebody hooks up events to digest.clientRequest, we need to hook the real event on http.clientRequest
ret._request = this.http.request(ret.options);
ret._request.digRequest = ret;
ret.on('_eventHook', function (evName, callback)
ret.on('newListener', function (evName, callback)
{
if (evName != 'upgrade' && evName != 'error' && evName != 'continue' && evName != 'timeout' && evName != 'drain') { return; }
if (this._request.listenerCount(evName) == 0)