Write new implementation for class BfxEventEmitter (bfxapi.websocket._event_emitter).

This commit is contained in:
Davide Casale
2023-10-01 21:27:46 +02:00
parent f6c49f677d
commit 8a1632d3c2
8 changed files with 87 additions and 116 deletions

View File

@@ -9,7 +9,7 @@ __all__ = [
"ReconnectionTimeoutError",
"ActionRequiresAuthentication",
"InvalidAuthenticationCredentials",
"EventNotSupported",
"UnknownEventError",
"OutdatedClientVersion"
]
@@ -48,7 +48,7 @@ class InvalidAuthenticationCredentials(BfxWebSocketException):
This error indicates that the user has provided incorrect credentials (API-KEY and API-SECRET) for authentication.
"""
class EventNotSupported(BfxWebSocketException):
class UnknownEventError(BfxWebSocketException):
"""
This error indicates a failed attempt to subscribe to an event not supported by the BfxWebSocketClient.
"""