Add bfxapi/websocket/errors.py script. Add __require_websocket_connection decorator inside BfxWebsocketClient class. Implement unsubscribe and clear methods.

This commit is contained in:
Davide Casale
2022-11-08 17:46:45 +01:00
parent 5dfe3d6b13
commit a37b7dda33
3 changed files with 37 additions and 9 deletions

View File

@@ -0,0 +1,7 @@
class ConnectionNotOpen(Exception):
"""
This error indicates an attempt to communicate via websocket before starting the connection with the servers.
"""
pass