* Stop fetching a new period/candle every x ms * @returns {Promise} Raise when the replay mode stops
()
| 454 | * @returns {Promise} Raise when the replay mode stops |
| 455 | */ |
| 456 | replayStop() { |
| 457 | return new Promise((cb) => { |
| 458 | if (!this.#replayMode) { |
| 459 | this.#handleError('No replay session'); |
| 460 | return; |
| 461 | } |
| 462 | |
| 463 | const reqID = genSessionID('rsq_stop'); |
| 464 | this.#client.send('replay_stop', [this.#replaySessionID, reqID]); |
| 465 | this.#replayOKCB[reqID] = () => { cb(); }; |
| 466 | }); |
| 467 | } |
| 468 | |
| 469 | /** |
| 470 | * When a symbol is loaded |
nothing calls this directly
no test coverage detected