Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

emit events from outside nestjs classes #53

Open
grinono opened this issue Jan 14, 2022 · 1 comment
Open

emit events from outside nestjs classes #53

grinono opened this issue Jan 14, 2022 · 1 comment

Comments

@grinono
Copy link

grinono commented Jan 14, 2022

I create a service function outside of nest for more simple unit testing. How can I emit events from this function instead of a nestjs class?

@shehabadel
Copy link

@grinono Did you know it? I am also trying to emit an event from a method outside NestJS system and listen for this event in a service in order to trigger a method based on it. However, the service class cannot listen to this event.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants