(i)
| 579 | return t && (n.method = "POST", n.body = t), fetch(i, n).then((s) => s.json()); |
| 580 | } |
| 581 | load(i) { |
| 582 | return i && (this._url = i), this.fetch(this._url).then((t) => this.parse(t)); |
| 583 | } |
| 584 | parse(i) { |
| 585 | const { key: t, websocket: n } = i; |
| 586 | t && (this._token = i.key); |
no test coverage detected