(error: unknown)
| 111 | } |
| 112 | |
| 113 | function onError(error: unknown) { |
| 114 | socket.on("error", () => {}) |
| 115 | cleanup() |
| 116 | reject(error instanceof Error ? error : new Error(errorMessage(error), { cause: error })) |
| 117 | } |
| 118 | |
| 119 | function onClose(code: number, reason: Buffer) { |
| 120 | cleanup() |
nothing calls this directly
no test coverage detected