Skip to content

@saflib/notify


Function: writeSseComment() ​

writeSseComment(target, comment): void

Write an SSE comment line (useful as a keepalive heartbeat). Format: : <comment>\n\n

Parameters ​

ParameterType
targetSseWritable
commentstring

Returns ​

void