EventEmitter Class

Require:

const EventEmitter = require("c1200s-sdk/eventemitter");
// OR
const EventEmitter = require("c1200s-sdk").EventEmitter;

Initiate:

class MyClass extends EventEmitter {
    constructor() {
        super();
    }
}

Trigger an event:

this.emit();

Register a listener:

this.on();
// OR
this.once();
// OR
this.addListener(); // Just an alias of on()