* Closes the connection, if any, and sets the readyState attribute to * CLOSED.
()
| 354 | * CLOSED. |
| 355 | */ |
| 356 | close () { |
| 357 | webidl.brandCheck(this, EventSource) |
| 358 | |
| 359 | if (this.#readyState === CLOSED) return |
| 360 | this.#readyState = CLOSED |
| 361 | this.#controller.abort() |
| 362 | this.#request = null |
| 363 | } |
| 364 | |
| 365 | get onopen () { |
| 366 | return this.#events.open |
no test coverage detected