| 1204 | return (this._seed++).toString(); |
| 1205 | } |
| 1206 | _send(t2) { |
| 1207 | if (2 == this._mode) |
| 1208 | return void setTimeout(() => this._send(), 100); |
| 1209 | const e = t2 ? [t2] : this._queue.filter((t3) => 1 === t3.status); |
| 1210 | if (!e.length) |
| 1211 | return; |
| 1212 | const s = e.map((t3) => (t3.status = 2, t3.data)); |
| 1213 | 3 !== this._mode ? this.fetch(this._url, JSON.stringify(s)).catch((t3) => this.onError(t3)).then((t3) => this.result(t3, s)) : this._socket.send(JSON.stringify({ action: "call", body: s })); |
| 1214 | } |
| 1215 | result(t2, e) { |
| 1216 | const s = {}; |
| 1217 | if (t2) |