Skip to content

Commit

Permalink
Clarify connection handing for SSE
Browse files Browse the repository at this point in the history
  • Loading branch information
Kaliumhexacyanoferrat authored Oct 31, 2024
1 parent 27c90cb commit 8751cbb
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion content/documentation/content/handlers/server-sent-events.md
Original file line number Diff line number Diff line change
Expand Up @@ -233,7 +233,8 @@ fails, the `Connected` property will be set to `false` allowing your loop to exi
next evaluation.

If the server has no events to be sent to the client, it is recommended by the specification to
periodically send comments to prevent proxy servers from cancelling the running request.
periodically send comments to prevent proxy servers from cancelling the running request and to
verify that the client is still connected.

If the server has no data for a connecting client and will most likely not produce any, the server
can indicate this to the client by sending a `204 No Content` response. This way the server does not
Expand Down

0 comments on commit 8751cbb

Please sign in to comment.