I am trying to get the EventEmitter in my own class running in ES6:
\"use strict\"; const EventEmitter = require(\'events\'); class Client extends EventEmitter{
Events are synchronous - you're firing it before you are listening. Use
const testClient = new Client(1,2,3,4,5); testClient.on('event', () => {console.log('triggered!')} ); testClient.eventTest();