SSEKeepAlive
Defined in: streaming-handler.ts:81
Create SSE keep-alive mechanism
Constructors
Section titled “Constructors”Constructor
Section titled “Constructor”new SSEKeepAlive():
SSEKeepAlive
Returns
Section titled “Returns”SSEKeepAlive
Methods
Section titled “Methods”start()
Section titled “start()”start(
res,intervalMs):void
Defined in: streaming-handler.ts:87
Start sending keep-alive pings
Parameters
Section titled “Parameters”ServerResponse
intervalMs
Section titled “intervalMs”number = 15000
Returns
Section titled “Returns”void
stop()
Section titled “stop()”stop():
void
Defined in: streaming-handler.ts:100
Stop sending keep-alive pings
Returns
Section titled “Returns”void