diff --git a/fastapi/sse.py b/fastapi/sse.py index 1e2bd86171..30edee0279 100644 --- a/fastapi/sse.py +++ b/fastapi/sse.py @@ -227,7 +227,7 @@ def format_sse_event( return "\n".join(lines).encode("utf-8") -# Keep-alive comment, per the SSE spec recommendation +# Keep-alive comment, per the SSE spec recommendation. KEEPALIVE_COMMENT = b": ping\n\n" # Seconds between keep-alive pings when a generator is idle.