()
| 396 | tls.off("close", onUpgradeClose) |
| 397 | } |
| 398 | function succeed() { |
| 399 | cleanup() |
| 400 | upgradeAvailable = false |
| 401 | attachReadListeners(tls) |
| 402 | resume(Effect.void) |
| 403 | } |
| 404 | function failUpgrade(cause: unknown) { |
| 405 | cleanup() |
| 406 | const upgradeError = new Socket.SocketError({ |
nothing calls this directly
no test coverage detected