A small event bus, enough for the fake session and the tests.
Private
Readonly
Every event sent so far.
Sends an event to every listener.
Adds a listener. Returns a function that removes it.
A small event bus, enough for the fake session and the tests.