* Closes the transport. * * @package
(fn?: () => void)
| 119 | * @package |
| 120 | */ |
| 121 | close(fn?: () => void) { |
| 122 | if ("closed" === this.readyState || "closing" === this.readyState) return; |
| 123 | |
| 124 | this.readyState = "closing"; |
| 125 | this.doClose(fn || noop); |
| 126 | } |
| 127 | |
| 128 | /** |
| 129 | * Called with a transport error. |