Skip to content

Commit

Permalink
Update content/techniques/events.md
Browse files Browse the repository at this point in the history
Co-authored-by: Micael Levi L. Cavalcante <[email protected]>
  • Loading branch information
koreanddinghwan and micalevisk authored Oct 18, 2023
1 parent 80f06ac commit ec846c7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion content/techniques/events.md
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ handleOrderCreatedEvent(payload: OrderCreatedEvent) {
}
```

> info **Hint** read more about ([listener options object](https://github.com/EventEmitter2/EventEmitter2#emitteronevent-listener-options-objectboolean)).
> info **Hint** read more about the [`OnOptions` options object from `eventemitter2`](https://github.com/EventEmitter2/EventEmitter2#emitteronevent-listener-options-objectboolean).

To use namespaces/wildcards, pass the `wildcard` option into the `EventEmitterModule#forRoot()` method. When namespaces/wildcards are enabled, events can either be strings (`foo.bar`) separated by a delimiter or arrays (`['foo', 'bar']`). The delimiter is also configurable as a configuration property (`delimiter`). With namespaces feature enabled, you can subscribe to events using a wildcard:
Expand Down

0 comments on commit ec846c7

Please sign in to comment.