Commit f275e1f
committed
docs(sse): document client disconnection and observable cleanup
Add a 'Client disconnection' section explaining that NestJS automatically
unsubscribes from the observable when the client closes the connection.
Show the `finalize` operator as the idiomatic way to run custom teardown
logic on disconnect.
Closes #32961 parent 024c826 commit f275e1f
1 file changed
Lines changed: 18 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
43 | 43 | | |
44 | 44 | | |
45 | 45 | | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
46 | 64 | | |
47 | 65 | | |
48 | 66 | | |
0 commit comments