(socket: Socket, data: string)
| 365 | } |
| 366 | |
| 367 | function writeSocketErrorAndDestroy(socket: Socket, data: string): void { |
| 368 | writeSocketMessageAndDestroy(socket, { |
| 369 | type: 'error', |
| 370 | data, |
| 371 | ts: new Date().toISOString(), |
| 372 | }) |
| 373 | } |
| 374 | |
| 375 | function unrefTimer(timer: ReturnType<typeof setTimeout>): void { |
| 376 | const maybeUnref = (timer as { unref?: () => void }).unref |
no test coverage detected