(data: string)
| 467 | let authenticated = false |
| 468 | let closing = false |
| 469 | const closeWithError = (data: string): void => { |
| 470 | if (closing || socket.destroyed) return |
| 471 | closing = true |
| 472 | socket.pause() |
| 473 | writeSocketErrorAndDestroy(socket, data) |
| 474 | } |
| 475 | const authTimer = setTimeout(() => { |
| 476 | if (authenticated || socket.destroyed) return |
| 477 | logForDebugging('[udsMessaging] closing unauthenticated idle client') |
no test coverage detected