Change visibility of decorators require_websocket_connection and require_websocket_authentication (and hardcode HEARTBEAT).

This commit is contained in:
Davide Casale
2023-06-17 22:24:27 +02:00
parent b12fedb7a3
commit d9733e8d38
3 changed files with 16 additions and 17 deletions

View File

@@ -7,7 +7,7 @@ __all__ = [
"TooManySubscriptions",
"ZeroConnectionsError",
"ReconnectionTimeoutError",
"WebSocketAuthenticationRequired",
"ActionRequiresAuthentication",
"InvalidAuthenticationCredentials",
"EventNotSupported",
"OutdatedClientVersion"
@@ -38,7 +38,7 @@ class ReconnectionTimeoutError(BfxWebSocketException):
This error indicates that the connection has been offline for too long without being able to reconnect.
"""
class WebSocketAuthenticationRequired(BfxWebSocketException):
class ActionRequiresAuthentication(BfxWebSocketException):
"""
This error indicates an attempt to access a protected resource without logging in first.
"""