Beyond Knowing
Ed Tools
Play Quiz
Sign in
Join Sookshmas
Beyond Knowing
Jobs
Ed-Tools
Play Quiz
Chaithanya A
Wall
Questions
e-Notes
Calculations
MCQs
News/Article
Events in Node.js
Every action on a computer is an event.Like when a connection is made or a file is opened.
Objects in Node.js can fire events,like the readStream object fires events when opening and closing a file.
Node.js has a built-in module,called "Events",where you can create-,fire-,and listen for- your own events.
To include the built-in Events module use the require() method.
In addition,all event properties and methods are an instance of an EventEmitter object.
To be able to access these properties and methods,create an EventEmitter object.
example:emit()
mca
Engineering-IS
Engineering-CS
node js
Posted on
by
Score
Share
Views
Comment(s)
Please
Login
to post your answer or reply to answer
Recent e-Note Comments
Recent e-Notes
Top Scored e-Notes
Scroll
×
Login to India's fastest growing social media for Self-Learners!
Sign in with Google
OR
Not registered?
Create an account
Forgot Password?
×
Join India's fastest growing social media network for learning and education!
Sign in with Google
OR
Already a registered user?
Login