This PR generalizes the nomenclature in ThreadedApiManager from referring to every type of listener as a socket to a a generic listener object of type AbstractListener. AbstractListener subclasses AbstractAsyncContextManager with a definition for async def recv(self) and has children BaseDepthCacheManager and ReconnectingWebsocket.
I couldn't find where to put the interface so I put it in its own file listeners.py.
This PR generalizes the nomenclature in
ThreadedApiManager
from referring to every type of listener as a socket to a a generic listener object of typeAbstractListener
.AbstractListener
subclassesAbstractAsyncContextManager
with a definition forasync def recv(self)
and has childrenBaseDepthCacheManager
andReconnectingWebsocket
.I couldn't find where to put the interface so I put it in its own file
listeners.py
.