mirror of
https://github.com/a-sync/game-server-watcher.git
synced 2026-07-23 06:03:34 -04:00
8 lines
149 B
JavaScript
8 lines
149 B
JavaScript
'use strict';
|
|
|
|
module.exports = (from, to, events) => {
|
|
for (const event of events) {
|
|
from.on(event, (...args) => to.emit(event, ...args));
|
|
}
|
|
};
|