MCPcopy Index your code
hub / github.com/Mathieu2301/TradingView-API / sendQueue

Method sendQueue

src/client.js:206–212  ·  view source on GitHub ↗

Send all waiting packets

()

Source from the content-addressed store, hash-verified

204
205 /** Send all waiting packets */
206 sendQueue() {
207 while (this.isOpen && this.#logged && this.#sendQueue.length > 0) {
208 const packet = this.#sendQueue.shift();
209 this.#ws.send(packet);
210 if (global.TW_DEBUG) console.log('§90§30§107 > §0', packet);
211 }
212 }
213
214 /**
215 * @typedef {Object} ClientOptions

Callers 2

sendMethod · 0.95
constructorMethod · 0.95

Calls 1

sendMethod · 0.80

Tested by

no test coverage detected