danpaquin / coinbasepro-python

The unofficial Python client for the Coinbase Pro API
MIT License
1.82k stars 732 forks source link

Set stop=true if an error occurs while creating a socket connection #378

Open ibraaaa opened 5 years ago

ibraaaa commented 5 years ago

When an exception is thrown while opening a connection or subscribing, stop still remains false. Users of WebsocketClient class will have no way to know whether a connection is live and functioning. This commit allows users to rely on ws_client.stop to figure this out.