Issue type
Brief description
I believe the following 2 errors should be emitted by the WS2Manager instead of just being logged:
|
ws.open().then(() => { |
|
return debug('socket connection opened') |
|
}).catch((err) => { |
|
debug('error opening socket: %s', err.stack) |
|
}) |
|
ws.auth().then(() => { |
|
return debug('socket authenticated') |
|
}).catch((err) => { |
|
debug('error authenticating socket: %s', err.message) |
|
}) |
|
}) |
Steps to reproduce
Start WS2Manager with an invalid url (api.bitfinex.com/ws/2 instead of wss://api.bitfinex.com/ws/2) and try to subscribe to one of the channel (for example call subscribeTicker('tBTCUSD').
Additional Notes:
Issue type
Brief description
I believe the following 2 errors should be emitted by the WS2Manager instead of just being logged:
bitfinex-api-node/lib/ws2_manager.js
Lines 284 to 288 in fabfc1c
bitfinex-api-node/lib/ws2_manager.js
Lines 276 to 281 in fabfc1c
Steps to reproduce
Start WS2Manager with an invalid url (
api.bitfinex.com/ws/2instead ofwss://api.bitfinex.com/ws/2) and try to subscribe to one of the channel (for example callsubscribeTicker('tBTCUSD').Additional Notes: