* Delivery WebSocket miniTicker * @param {symbol} symbol name or false. can also be a callback * @param {function} callback - callback function * @return {string} the websocket endpoint
(symbol?: string, callback = console.log)
| 5999 | * @return {string} the websocket endpoint |
| 6000 | */ |
| 6001 | deliveryMiniTickerStream(symbol?: string, callback = console.log) { |
| 6002 | const reconnect = () => { |
| 6003 | if (this.Options.reconnect) this.deliveryMiniTickerStream(symbol, callback); |
| 6004 | }; |
| 6005 | const endpoint = symbol ? `${symbol.toLowerCase()}@miniTicker` : '!miniTicker@arr'; |
| 6006 | const subscription = this.deliverySubscribeSingle(endpoint, data => callback(this.dMiniTickerConvertData(data)), { reconnect }); |
| 6007 | return (subscription as any).url; |
| 6008 | } |
| 6009 | |
| 6010 | /** |
| 6011 | * Delivery WebSocket bookTicker |
no test coverage detected