@MGM-IVR
prependToNextAction: true אומר בעצם "תוסיף את ההודעה לתור"
כלומר לא חוזרת שום תשובה באופן מיידי, אלא כאשר תגיע לread הבא, יישלח הודעה משורשרת (עם &) שכוללת:
ככה בערך זה נראה בקוד של הספריה
this.#responsesTextQueue = { pull: () => { const queueText = this.#_responsesTextQueue; this.#_responsesTextQueue = ''; return queueText; }, push: (newResText) => { this.#_responsesTextQueue += `${newResText}&`; } }; id_list_message (messages, options = {}) { const responseTxt = `id_list_message=${messagesCombined}`; if (prependToNextAction) { this.#responsesTextQueue.push(responseTxt); // 👈👈 } else { this.send(this.#responsesTextQueue.pull() + responseTxt + '&'); } } async read() { this.send(this.#responsesTextQueue.pull() + responseText); }זה לא ממש נוח, אבל ככה זה עובד מהגלגול הקודם של הספריה (לפני הfork שלי), ואני לא רוצה לשבור קוד קיים.