(endpoint, reconnect = false)
| 810 | * @return {undefined} |
| 811 | */ |
| 812 | const terminate = function (endpoint, reconnect = false) { |
| 813 | let ws = Binance.subscriptions[endpoint]; |
| 814 | if (!ws) return; |
| 815 | ws.removeAllListeners('message'); |
| 816 | ws.reconnect = reconnect; |
| 817 | ws.terminate(); |
| 818 | } |
| 819 | |
| 820 | |
| 821 | /** |
no test coverage detected