We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Nest Docu
Server-Sent Events (SSE) (since v7.5.0) are used as follows:
Nest controller
@Sse('sse') sse(): Observable<MessageEvent> { return interval(1000).pipe(map((_) => ({ data: { hello: 'world' } }))); }
Client
const eventSource = new EventSource('/sse'); eventSource.onmessage = ({ data }) => { console.log('New message', JSON.parse(data)); };
Full Example from Nest: nestjs/nest/sample/28-sse
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Nest Docu
Server-Sent Events (SSE) (since v7.5.0) are used as follows:
Nest controller
Client
Full Example from Nest: nestjs/nest/sample/28-sse
The text was updated successfully, but these errors were encountered: