mirror of
https://github.com/aljazceru/bitfinex-api-py.git
synced 2025-12-19 06:44:22 +01:00
Rename event <disconnection> to <disconnected> (to mantain compliance).
This commit is contained in:
@@ -206,7 +206,7 @@ class BfxWebSocketClient(Connection, Connection.Authenticable):
|
||||
raise error
|
||||
|
||||
if not self.__reconnection:
|
||||
self.__event_emitter.emit("disconnection",
|
||||
self.__event_emitter.emit("disconnected",
|
||||
self._websocket.close_code, \
|
||||
self._websocket.close_reason)
|
||||
|
||||
|
||||
@@ -9,7 +9,7 @@ from pyee.asyncio import AsyncIOEventEmitter
|
||||
from bfxapi.websocket.exceptions import UnknownEventError
|
||||
|
||||
_ONCE_PER_CONNECTION = [
|
||||
"open", "authenticated", "disconnection",
|
||||
"open", "authenticated", "disconnected",
|
||||
"order_snapshot", "position_snapshot", "funding_offer_snapshot",
|
||||
"funding_credit_snapshot", "funding_loan_snapshot", "wallet_snapshot"
|
||||
]
|
||||
|
||||
Reference in New Issue
Block a user