There are some examples. I recommend that you download/clone the BangleApps repo, https://github.com/espruino/BangleApps. And use a decent IDE/text editor that can search through all the projects in there.
I searched for keyword "emit" and found an example.
Espruino is a JavaScript interpreter for low-power Microcontrollers. This site is both a support community for Espruino and a place to share what you are working on.
There are some examples. I recommend that you download/clone the BangleApps repo, https://github.com/espruino/BangleApps. And use a decent IDE/text editor that can search through all the projects in there.
I searched for keyword "emit" and found an example.
https://github.com/espruino/BangleApps/blob/master/apps/jbells/jbells.js
From briefly looking at the examples, its enough to call
and later
The "Object" class is a compatible EventEmitter by default.