jaggedsoft / node-binance-api

Node Binance API is an asynchronous node.js library for the Binance API designed to be easy to use.
MIT License
1.58k stars 768 forks source link

Is it possible to handle websocket errors myself? #806

Open cmartin81 opened 2 years ago

cmartin81 commented 2 years ago

Hi, I have a method that fetches kline data and also it starts subscribing to updates via websockets. From time to time it will lose the connection or something other might happen. Is it possible to get the errors from the websocket API and handle this myself?

mr-smit commented 2 years ago

rewrite binance npm function by yourself, use power of javascript, access "binance" object and create a new function , you will have access to all functions and varibles in that object