How does the operation of the eventemitter class in node.js differ from websockets? | Sololearn: Learn to code for FREE!
Nouvelle formation ! Tous les codeurs devraient apprendre l'IA générative !
Essayez une leçon gratuite
+ 1

How does the operation of the eventemitter class in node.js differ from websockets?

In Node.js you implement eventemitter to listen to and react to events. You can also use socket.io to react to events. How do they differ? Is the eventemitter only reacting to local events as apposed to remote connection events?

21st Apr 2019, 10:08 PM
Scott Aulsebrook
Scott Aulsebrook - avatar
0 Réponse