Userscript--Twitch-Chat-Emotes icon indicating copy to clipboard operation
Userscript--Twitch-Chat-Emotes copied to clipboard

Move to event-based internal communication

Open cletusc opened this issue 9 years ago • 1 comments

Modules need to communicate, but don't need to be spaghetti. Having everything all so tightly intertwined isn't good at all and defeats the purpose of modules.

Move to emitting events on subscribing to events to handle communication between modules. I will likely use https://www.npmjs.com/package/eventemitter3 for this.

cletusc avatar Jul 16 '15 16:07 cletusc

Event planning is going to be here for the time being: https://docs.google.com/spreadsheets/d/1ryMT8TJa11hK72PLaimwBxT8u7pP-oEXFyvsbsYez6I/edit?usp=sharing

I started the basics of the code, but got a bit lost without something showing me which events I've already done.

cletusc avatar Jul 28 '15 02:07 cletusc