()
| 98 | : undefined |
| 99 | |
| 100 | function cleanup() { |
| 101 | if (timeout) clearTimeout(timeout) |
| 102 | socket.off("open", onOpen) |
| 103 | socket.off("error", onError) |
| 104 | socket.off("close", onClose) |
| 105 | options.signal?.removeEventListener("abort", onAbort) |
| 106 | } |
| 107 | |
| 108 | function onOpen() { |
| 109 | cleanup() |
no test coverage detected