Skip to content

Commit ea39848

Browse files
authored
docs(sse): Referenced the MessageEvent interface
The hint box under the usage section of server-sent events does not reference the fact that the MessageEvent interface is in `@nestjs/common`.
1 parent 71632cd commit ea39848

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

content/techniques/server-sent-events.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ sse(): Observable<MessageEvent> {
1313
}
1414
```
1515

16-
> info **Hint** The `@Sse()` decorator is imported from the `@nestjs/common`, while `Observable`, `interval`, `and map` are imported from the `rxjs` package.
16+
> info **Hint** The `@Sse()` decorator and `MessageEvent` interface are imported from the `@nestjs/common`, while `Observable`, `interval`, `and map` are imported from the `rxjs` package.
1717
1818
> warning **Warning** Server-Sent Events routes must return an `Observable` stream.
1919

0 commit comments

Comments
 (0)