* Closes the connection, if any, and sets the readyState attribute to * CLOSED.
()
| 16911 | * CLOSED. |
| 16912 | */ |
| 16913 | close() { |
| 16914 | webidl.brandCheck(this, _EventSource); |
| 16915 | if (this.#readyState === CLOSED) return; |
| 16916 | this.#readyState = CLOSED; |
| 16917 | this.#controller.abort(); |
| 16918 | this.#request = null; |
| 16919 | } |
| 16920 | get onopen() { |
| 16921 | return this.#events.open; |
| 16922 | } |
no test coverage detected