fhqvst / avanza

A JavaScript client for the unofficial Avanza API
MIT License
229 stars 59 forks source link

subscribe() validation error should be thrown to caller, not to event loop #12

Closed gustafg closed 6 years ago

gustafg commented 6 years ago

A malformed subscription() call done when websocket was not up and initialized would throw an error to the event loop instead of the caller causing the app to crash (unless an uncaughtException handler existed).

gustafg commented 6 years ago

Will come as larger patchset.