Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Listening for all events

See original GitHub issue


Using this node to listen for named events works like a charm.
However I was wondering if it is also possible to listen for all events.

Have tried following without success:

eventSource.addEventListener('', callback);
eventSource.addEventListener('*', callback);

Sometimes it is not clear to users which events are being send, especially when the default ‘message’ is replace by other custom events. In that case it would be nice to start listening for all events, and then later on filter only specific events…

Kind regards, Bart Butenaers

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:9 (4 by maintainers)

github_iconTop GitHub Comments

Shoelacecommented, Sep 15, 2020

@bartbutenaers I had the same idea as you. the only solution left is to get the spec changed

bartbutenaerscommented, Jun 15, 2018

Hi Aslak, ok, thanks for your time.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Listen for all events in JavaScript
I'm trying to figure out how to listen for all events on a JavaScript object. I know that ...
Read more >
Listening for events on multiple elements using JavaScript ...
In JavaScript, event listeners have to be attached to individual elements. ... Listen for all focus events in the document document.
Read more >
Listen to all events in Javascript - Brian Hanson
I ran into a situation today using a third party library that doesn't have a documented onLoad or onInit event.
Read more >
EventTarget.addEventListener() - Web APIs | MDN
It works on any event target, not just HTML or SVG elements. ... A case-sensitive string representing the event type to listen for....
Read more >
Listening for events of all types
Listening for events of all types. You can specify a listener which listens for all events types as shown below: on any() as...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Post

No results found

github_iconTop Related Hashnode Post

No results found