(comment: string)
| 306 | } |
| 307 | |
| 308 | const enqueueComment = (comment: string) => { |
| 309 | if (controllerClosed) return false |
| 310 | try { |
| 311 | controller.enqueue(encodeSSEComment(comment)) |
| 312 | lastWriteTime = Date.now() |
| 313 | return true |
| 314 | } catch { |
| 315 | controllerClosed = true |
| 316 | return false |
| 317 | } |
| 318 | } |
| 319 | |
| 320 | const abortListener = () => { |
| 321 | controllerClosed = true |
no test coverage detected