Quantcast
Channel: How to use EventEmitter in Node.js - Stack Overflow
Browsing all 2 articles
Browse latest View live

Answer by Nedal Eldeen for How to use EventEmitter in Node.js

Simply, because you didn't include the (axios-containing) file in your app. The file that listens to events hasn't started yet. So, try to import the file in your running app. And don't forget to add...

View Article



How to use EventEmitter in Node.js

I created a small Express server in Node.js with a singular route. When an HTTP request is used to GET '/get-jobs' I want to emit an event that communicates said event to another file that send s an...

View Article
Browsing all 2 articles
Browse latest View live




Latest Images