You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
i am trying to emit event from another folder
eg.
├── src ├── index
├── index.controller.ts
├── index.module.ts
├── index.service.ts
├── app.controller.ts
├── app.module.ts
├── app.service.ts
index.controller.ts
import { Controller, Get } from "@nestjs/common";
import { EventsService } from "src/events.service";
@Controller()
export class IndexController {
constructor( private readonly eventService: EventsService) {}
@Get()
async index() {
this.eventService.emit({ emitting: new Date().toISOString() })
return {fgh: 'fgh'}
}
}
, but client doesn't receive any event emitted from index.controller
The text was updated successfully, but these errors were encountered:
i am trying to emit event from another folder
eg.
├── src
├── index
├── index.controller.ts
├── index.module.ts
├── index.service.ts
├── app.controller.ts
├── app.module.ts
├── app.service.ts
index.controller.ts
, but client doesn't receive any event emitted from index.controller
The text was updated successfully, but these errors were encountered: