Introduction
Once listeners let you run a function only one time when an event happens. This helps avoid running the same code many times by mistake.
You want to handle a user login event only the first time it happens.
You want to load some data once when a server starts.
You want to clean up resources only once after a task finishes.
You want to listen for a connection event just the first time a client connects.