Skip to content

Glossary: Real-Time Apps with WebSockets

EventEmitter

Node's built-in tool for sending and listening to named events inside one program. One part of the code calls `emit` with a name and data, and every listener registered with `on` for that name receives it, which is useful for sharing one change with many open connections.

Where the book teaches it

Related terms

Fan-outMemory leakEmit