Emits an event of the given type and data.
Subscribes to events of the given type with the given hook.
Additional options can be provided, like eg. Retries or the id of the subscriber. This needs to be unique.
Subscribes to ALL events with the given hook.
Additional options can be provided, like eg. Retries or the id of the subscriber. This needs to be unique.
Interface for an event service.