Skip to content

Commit

Permalink
docs: add note on stream termination (closes mpetrunic#75) (mpetrunic#76
Browse files Browse the repository at this point in the history
)
  • Loading branch information
sinedied authored Jul 31, 2023
1 parent 66e8f46 commit 1d9505d
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,9 @@ fastify.get('/listenForChanges', {}, (request, reply) => {
})
```

##### Note
- When sending individual events, the connection is kept open until you call `reply.sseContext.source.end()` to terminate the stream.

##### Sending events from EventEmmiters

* [not supported in all nodejs versions](https://nodejs.org/api/events.html#events_events_on_emitter_eventname_options)
Expand Down

0 comments on commit 1d9505d

Please sign in to comment.