binance-api-node
binance-api-node copied to clipboard
can we make stream subscribing promise based?
function futuresCustomSubStream() => new Promise((rs, rj) => {
// connect ws
// on error -> reject
// on success -> resolve
})
const unsubscribe = await client.ws.futuresCustomSubStream()
#589