Our great sponsors
-
SurveyJS
Open-Source JSON Form Builder to Create Dynamic Forms Right in Your App. With SurveyJS form UI libraries, you can build and style forms in a fully-integrated drag & drop form builder, render them in your JS app, and store form submission data in any backend, inc. PHP, ASP.NET Core, and Node.js.
-
WorkOS
The modern identity platform for B2B SaaS. The APIs are flexible and easy-to-use, supporting authentication, user identity, and complex enterprise features like SSO and SCIM provisioning.
I'm the author of xmpp.js and aria2.js.
I'm currently investigating alternatives to EventEmitter to support more JavaScript environments out of the box, namely deno and gjs.
I would recommend to try signals pattern which comes from action script. You can get inspired from https://github.com/millermedeiros/js-signals. As it can be implemented in 20 lines of code you can code your own version to match exactly what you need.
Readme: https://github.com/getify/revocable-queue#eventiterable