question-mark
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.

Add wildcard support for events

See original GitHub issue

It would be great if you could use a wildcard to capture all events. For example:

client.on("*", function(data) {

}

Issue Analytics

  • State:closed
  • Created 12 years ago
  • Reactions:28
  • Comments:132 (23 by maintainers)

github_iconTop GitHub Comments

29reactions
mkhahanicommented, May 29, 2016

It can be handled in the app logic using one event name for all events:

socket.emit('public-event', {'type': 'login', ...});
socket.emit('public-event', {'type': 'logout', ...});
14reactions
alexey-shcommented, Mar 27, 2016

how it’s going? +1 for on("*", function () { for both client and server

Read more comments on GitHub >

github_iconTop Results From Across the Web

Can I use wildcards when adding a snapshot to an event?
Hey @DaniB — The answer is a qualified yes but I'm not sure if you're referring to the event definition, or the Snapshot....
Read more >
Javascript custom events with wildcards (*) - Stack Overflow
I would constraint it to just the last part be a wildcard. Then, trigger would look like function trigger(name, data) { var parts ......
Read more >
Using the Wildcard Event Email Template - Vision6 Support
In the event selector, scroll right to the end and choose Event Wildcards. Click Insert. Customise the email design as desired - you...
Read more >
Using Filter Text to match specific events | Step 4 - EventSentry
Wildcards can be used in any of the follow fields in an event log filter (Regular expression support is also available when matching...
Read more >
Wildcard Host Header Support - Microsoft Learn
Wildcards are only allowed in the left-most subdomain of the hostname. For example, http://*.service.contoso.com is a legal wildcard host ...
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 Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found