Krystal Labs
  • Home
  • Open Source
  • Who is Krystal?
Subscribe
Ben Honeywill

Ben Honeywill

1 post published

Creating a simple custom event system in JavaScript
Tutorials

Creating a simple custom event system in JavaScript

What problem are we solving? Your front end code can quickly become unwieldy when building an application which has to react to a large variety of different events. For example, in an app using websockets it's not uncommon to see code like this: mySocket.addEventListener("message", (message) =>

  • Ben Honeywill
Ben Honeywill Aug 6, 2017 • 5 min read
Krystal Labs © 2025
  • Katapult
  • Krystal
  • GitHub
Powered by Ghost