system_assignation/node_modules/http2-wrapper/source/utils/proxy-events.js

8 lines
149 B
JavaScript
Raw Normal View History

2022-03-24 09:22:39 -04:00
'use strict';
module.exports = (from, to, events) => {
for (const event of events) {
from.on(event, (...args) => to.emit(event, ...args));
}
};