I'm looking through the node documentation and trying to understand this function

```
server.on('connection', (stream) => {
  console.log('someone connected!');
});

emitter.on(eventName, listener)

```

The part I'm confused about is this; the specific part is bolded. "Adds the listener function to the end of the listeners array **for** the event named eventName. "

Does the for mean there is a listeners array for all emitters (which in this case is server) and just that some of those functions in that array are "for" (as in designated to) certain events. Or, does it mean, that there is a listeners array for all events and that it will just add this function (stream) to the event which is, 'connection'.

If it's the latter, how does the eventlistenerarray[lastindex aka (stream)] know that it's only running when the event is happening on the emmiter... server in this case