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

[bug] Nest SSE not working #1508

Open
ohmygodvt95 opened this issue Apr 22, 2024 · 0 comments
Open

[bug] Nest SSE not working #1508

ohmygodvt95 opened this issue Apr 22, 2024 · 0 comments
Assignees

Comments

@ohmygodvt95
Copy link

Describe the bug
When I use Nest's SSE, it seems like the data part has disappeared.
Screenshot from 2024-04-22 15-52-35

To Reproduce
In the controller, I use a code sample from NestJS.
https://docs.nestjs.com/techniques/server-sent-events#usage

@Sse('sse')
  sse(): Observable<MessageEvent> {
    return interval(1000).pipe(map((_) => ({ data: { hello: 'world' } } as MessageEvent)));
  }

Expected behavior
I use a sample from the NestJS source, the result will be as follows:
https://github.com/nestjs/nest/tree/master/sample/28-sse
Screenshot from 2024-04-22 15-51-25

Additional context
I use the default template setup.
Perhaps there has been some configuration that caused the loss of the SSE data.

@ohmygodvt95 ohmygodvt95 changed the title Nest SSE not working [bug] Nest SSE not working Apr 22, 2024
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