+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?

4/21/2019 10:08:25 PM

Scott Aulsebrook

1 Answer

New Answer

+3

Node.js event emitter can be used for any kinds of events Socket.io can be only used for itself. Also, socket.io uses Node.js events