#20: Events Module in Node.JS | Handling Events in Node.js with EventEmitter in Hindi
HTML-код
- Опубликовано: 22 авг 2024
- Welcome, What is the Event Module in Node.JS in Hidi. Handling Events in Node.js with EventEmitter
What Is an EventEmitter?
The EventEmitter class is a built-in class that resides in the events module.
🔴 Instagram Link: / vinodthapa55
Creating EventEmitters
That being said, let's go ahead and create an EventEmitter. This can be done either via creating an instance of the class itself, or by implementing it through a custom class and then creating an instance of that class.
Creating an EventEmitter Object
Let's start off with a simple event-emitting object. We'll create an EventEmitter that will emit an event that contains information about the application's uptime, every second.
First, import the EventEmitter class from the events modules:
const { EventEmitter } = require('events');
************ Must Watch Videos For Web Development ************
➡️ ReactJS Tutorial in Hindi 2020 Playlist Link: • React JS Tutorial in H...
➡️ ReactJS JavaScript Array Map Method in Hindi with Example: • ReactJS JavaScript Arr...
➡️ Fat Arrow Function in JavaScript in Hindi 2020: • ES6 Tutorial #8: Fat A...
➡️ #23: Array in React JS in Hindi | React JS Project Netflix App #2 in Hindi in 2020
➡️ Array in JavaScript in Hindi: • JavaScript Tutorial in...
➡️ #22: React JS Project Netflix App Part #1 in Hindi in 2020: • #22: Props in React Js...
➡️ Install VS Code for ReactJS LINK: www.thapatechn...
➡️ Check Complete Reactjs in One video here 👇 • ReactJS For Beginners ...
➡️ HTML in One Video: • Learn HTML in One Vide...
➡️ CSS in One video: • Learn Complete CSS In ...
➡️ CSS FlexBox in 30 Minutes: • CSS FlexBox in 30 Minu...
➡️ JavaScript in One video: • JavaScript in One Vide...
➡️ ECMAScript 6 in One Video: • ES5 & ES6 | ECMAScript...
➡️ HTML5 in one video: • HTML5 Tutorial in One ...
➡️ CSS3 in one video: • Learn Complete CSS3 In...
➡️ Bootstrap4 in One video: • Bootstrap 4 in One Vid...
➡️ Jquery in One video: • jQuery in One Video in...
➡️ JSON in one video: • JSON in One Video in H...
➡️ ReactJS in one video: • ReactJS For Beginners ...
➡️ PHP in One Video: • PHP TUTORIAL IN ONE VI...
➡️ NodeJS in one video: / ipnwakoibt
➡️ MySQL in one video: • Complete SQL & MySQL i...
********** CLICK HERE TO WATCH ************
➡️ Fetch API in JavaScript: • Fetch API in JavaScrip...
➡️ AJAX tutorial for beginners in Hindi: • AJAX tutorial for begi...
➡️ Template literals (Template strings) in ES6 in JavaScript in Hindi: • ES6 Tutorial #3: Templ...
➡️ Async Await in JavaScript in Hindi: • Async Await in JavaScr...
➡️ Promises in JavaScript in Hindi: • Master The Promises in...
➡️ Callback Hell in JavaScript: • Callback Hell in JavaS...
➡️ Advanced JavaScript in Hindi Playlist: • Advanced JavaScript Tu...
➡️ ECMAScript Tutorial in Hindi 2020: • Modern JavaScript ES6 ...
➡️ ES5 & ES6 | ECMAScript 6 in One Video in Hindi: • ES5 & ES6 | ECMAScript...
➡️ JavaScript Game Development Series in 2020: • JavaScript Game Develo...
➡️ Source Code Link: www.thapatechn...
➡️ Top 5 Programming Languages in 2020: • Top 5 Programming Lang...
➡️ Ludo Game JavaScript Link: • JavaScript Game in Hin...
➡️Plz show some love to My Siter RUclips Channel and Plz Subscribe Link: / @mayabeautyvlogs878
**************** MUST WATCH VIDEOS *****************
➡️ How to become a Full Stack Developer 2020: • How to become a Full S...
➡️ How To Become a Web Developer 2020: • How To Become a Web De...
➡️ How JavaScript Works: • How JavaScript Works i...
➡️ Follow me on Instagram: / vinodthapa55
Make Website Responsive Using Media Queries in One Video in Hindi | Web Design Tutorial in Hindi
➡️ Link: • Make Website Responsiv...
Guys, Please support my channel by SUBSCRIBE to my channel and share my videos in your Social Network TimeLines.
Don't Forget to Follow me on all Social Network,
Website Link: www.thapatechn...
Instagram Link: / vinodthapa55
Facebook Link: / vinodthapa55
Twitter Link: / vb55thapa
Facebook ThapaTechnical Page Link: www.facebook.c...
Good morning Guy's ❤️ plz LIKE n SHARE the video to all your friends ok 🙏
Good_Morning Sir i share this course on my fb,whatsapp, and , imo etc
The way you explain everything seems so easy❤️
when i watch your videos, everything looks easy and i am very thankful sir for your all awesome videos
THANk YOU DAI
I took pluralsight node course but i coudnt understand it from there but i am able to understand it today.
Thank you Soo much Dai. Its very Valuable
The way you explain everything is awesome. Great job (y)
Hello Bro, I am really thankful to you for your awesome videos. I watched so many videos on but your videos are really informative and clear. Your explanation is so simple and I am just loving your videos. Thank you so much and please keep doing the same.
Really appreciate your efforts you're doing great stuff.
Your videos are really helpful . Thanks for amazing content
Glad you like them!
Kal video ke liye wait kar raha tha
Thanks brother Soo much, Watched so many videos , Your video made my concept clear
Kya baat h Thapa ji ... tu c ta siraaa lata veer ..
This topic needs practise then only one should able to understand this 😀😀
event emit is just like a function.
First you define it & then call it. That's it.
love this video so much..thank u very much for your effort!!!
bro this video little confusing , but i understand, thanks 4 the help
Superb 💖💞💖
your teaching is awesome
Nice Tutorial But I have Query Could you explain me what are the difference b/w event and function ?
Thank you so much 💟 love you your teaching techniq thanks
easy concept ko bhi itna hard bana dya
thanks bro for outstanding tutorial waiting for more node js professional project . love from bangladesh
Bro Thank you for the tut, it was very helpfull😍🥰🧡
just wow sir u r amazing
Awesome bro 💞
Amazing ❤️thank you sir for your hard work
Thank yo so much, easy explanation
thank you sir
Good❤️❤️❤️❤️❤️❤️❤️❤️❤️❤️❤️
After watching and Accessing the playlist also LIKE the Videos guyz
aapka video kal nahi aaya to , mujhe bechaini ho rahi thi
thanks sir
I AM AT 83TH POSITION
😀😃😄😁
great video😀
THANK YOU SO MUCH SIR💙💙💙
@Thapa Technical Please make video on Java Backend Development using Spring Framework and also Hibernate. It will be very helpful please.
You are great sir
nice bro you are greate
this video is helpful.
Awesome Sir
agar ma ik function create karta ho parameter k sat aur uske bad kisi b endpoint per ya kisi b get api ma muje us function ko call krna hoa to ma function ko argument pass kr k usko run krwa longa to phr ma event emitter ko q use karo??? why?? agar muje just simple ik function ko he call krwana ha to phr ma directly function he likh lo na event emiter ki muje kya zarorat??? kya ye kam bina event emiter k nahi ho skta phle event banao phr uske bad uske call kro phr use listen karo faraq kya ha???
💟💟💟
you are a good content creator. but please stop saying guys 100+ times in 1 video... thats irritating
it is same as functions
awesome video
Button se listen nahi karva sakte kya
Kisliye krna wo tho reactjs ya frontend me jo hoga usse hojayega.. Nodejs Backend me kaam aata hai
@@webcode6071 pta hai ... fir backened mein iska use string ko console par print karvane ke kaam ata hai
thanks brother!
great
Today I am first😂
And aftar 6 month I am in 50th position
Aap dono ko iss achievement ke liye bahut bahut shubhkamnaaye
@@ashiskanu7101 and After 7 months im 57th position...
After one year I am 66th🥲
And After 1 Year later i am 50KTH
Thankyou ❤️
thank you
Hiii thapa bhai reactjs hooks pe full video login signup Redirects homepage click the login button .......validation k sath
sir apny jo localhost se email send ka btaya tha .mene bi localhost se email send ki mgr nhi howi sari seting bi karli thi ap ne btaen itni bar kar sakha ho mgr send nhi ho rahi
Do you have video on threading?
Bro jab events module class return krta hai too uss class keyword ka use kyu nhi kiya apne. Apne const likha hai 1st line mai ye DOUBT hai plz solve kr dijiye🥺
so sir its a little bit confusing that fs and other modules are not a class so we can't treat fs module as a class then creates its object
Video ke end me konse song ki tune baj rahi he... please tell me..
Great Job Thapa ❤️
Socket.io ki video laiye sir
const EventEmitter = require('events').EventEmitter;
const event = new EventEmitter();
I saw a video where the above way was used for registering events rather than
const EventEmitter = require('events');
const event = new EventEmitter();
Plz suggest which one is correct!
the second is correct and easy to use
*_Kal main video ko miss kr rha tha_*
😅
getting error while connecting API to mongoDB database
student.insertone() buffering timeout 10000ms
please help in resolving this
Bhai Ese Hi Pura MERN and Angular and Vue Js bhi padha do So we Become MERN MEAN AND MEVN DEVELOPER
hello sir i m curruntly working on a project where i m implementing html 5 video tag with VideoJs plugin of javascript bt i unable to find solution for maintain qualities like 144p,360p,720p , so what is the best way to do this m using django for backend
events module is tough
6:26 Here comes a Breaking Bad fan .
from a long time I am looking for video or article where it shows how we can call trigger function based on Client button click, can some one please guide.
Hope Thapa Technical or someone could help, will be really grateful
After two year I make century 😂
5:20 sir classes konsi video mei sikhaya apne
2:00
Hi
do we cover mongo db?
When do we use this event cluster. Every udemy course just tell about directly express.When to use what. Like we hardly use http as we use express for this
Are bhai ye sab jis company me kaam karoge vha pata chal jayega. Abhi bas concept pata karlo. Itna load nhi lete
Sir plzz explain clientX JavaScript clientY
Sir plz tell me the intro song name plz, I have a humble request to you sir plz plz 🙏
can we handle errors using event module
Dai Hajur le paila event.emit lekhnu bhako thyo pheri theko mathi tapae le event.on kina leknu bhako.
a little bit confusing how it works
Make tutorial of mongodb
Where is github page ???
7:14
19:12
Hi @thapa Technical , can I use the content in my language ?
no
@@Dynamic_Love07 you made the content ? I have already published it with my own content .
apky channel ko subscried bi kia howa h plz kch help kar den
samajh ni aara
I am confused... ham kis button pe event fire ker rhe h kese pata lagega... or click, hover, dblclick ye sab events mention kese kare...???
emit ke baad jo bracket me likha hai usme, us naam ka ek button hoga page me kahin eg. SayMyName
bhai kahna kya chahte ho.....?????
kuchh sahi se samjha hi nahi paa rahe...
isiliye channel grow nahi kiya
100th
Emit faltu hai
bahut bakwas
Harry is better than u
Kuch mja nahi aaya 🥲🥲🥲🥲
ek do bar aur dekko maja aa jayega... mujhe bhi peheli bar mein maja nahi aaya.
@@harshjha271 pakka bhai😂😂