Skip to content

Miscellaneous

sendSSEComment()

sendSSEComment() — returns void

Available in: controller

Send an SSE comment (keep-alive ping) through a streaming writer.

NameTypeRequiredDefaultDescription
writeranyyesThe writer object returned by initSSEStream().
commentstringnopingOptional comment text.