Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
mpetrunic authored Jul 26, 2022
1 parent 0a642b5 commit 6b50435
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -87,5 +87,6 @@ server.get("/", function (req, res) {
##### Note
- to remove event listeners (or some other cleanup) when client closes connection,
you can listen on fastify's [req.raw connection close event](https://nodejs.org/docs/latest-v12.x/api/http.html#http_event_close_2):
you can listen on connection closing event: `request.socket.on('close', () => abortController.abort());
`

0 comments on commit 6b50435

Please sign in to comment.