MCPcopy
hub / github.com/Mathieu2301/TradingView-API / send

Method send

src/client.js:200–203  ·  view source on GitHub ↗

@type {SendPacket} Send a custom packet

(t, p = [])

Source from the content-addressed store, hash-verified

198
199 /** @type {SendPacket} Send a custom packet */
200 send(t, p = []) {
201 this.#sendQueue.push(protocol.formatWSPacket({ m: t, p }));
202 this.sendQueue();
203 }
204
205 /** Send all waiting packets */
206 sendQueue() {

Callers 15

ClientClass · 0.95
#parsePacketMethod · 0.80
sendQueueMethod · 0.80
constructorMethod · 0.80
setSeriesMethod · 0.80
setMarketMethod · 0.80
setTimezoneMethod · 0.80
fetchMoreMethod · 0.80
replayStepMethod · 0.80
replayStartMethod · 0.80
replayStopMethod · 0.80
ChartSessionClass · 0.80

Calls 1

sendQueueMethod · 0.95

Tested by

no test coverage detected