MCPcopy Create free account
hub / github.com/DHTMLX/scheduler / _send

Method _send

codebase/sources/dhtmlxscheduler.js:1206–1214  ·  view source on GitHub ↗
(t2)

Source from the content-addressed store, hash-verified

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)

Callers 2

connectMethod · 0.95
_wrapperMethod · 0.95

Calls 3

fetchMethod · 0.95
onErrorMethod · 0.95
resultMethod · 0.95

Tested by

no test coverage detected