()
| 19406 | __privateSet(this, _request, makeRequest(initRequest)); |
| 19407 | __privateMethod(this, _connect, connect_fn).call(this); |
| 19408 | } |
| 19409 | /** |
| 19410 | * Returns the state of this EventSource object's connection. It can have the |
| 19411 | * values described below. |
| 19412 | * @returns {0|1|2} |
| 19413 | * @readonly |
| 19414 | */ |
| 19415 | get readyState() { |
| 19416 | return __privateGet(this, _readyState); |
| 19417 | } |
| 19418 | /** |
| 19419 | * Returns the URL providing the event stream. |
| 19420 | * @readonly |
| 19421 | * @returns {string} |
| 19422 | */ |
| 19423 | get url() { |
| 19424 | return __privateGet(this, _url); |
| 19425 | } |
| 19426 | /** |
| 19427 | * Returns a boolean indicating whether the EventSource object was |
| 19428 | * instantiated with CORS credentials set (true), or not (false, the default). |
| 19429 | */ |
| 19430 | get withCredentials() { |
| 19431 | return __privateGet(this, _withCredentials); |
| 19432 | } |
no test coverage detected