A mux can provide the protocols it responds to
This commit is contained in:
parent
07c09d8d9e
commit
11db313b17
|
@ -22,6 +22,9 @@ class IMultiselectMuxer(ABC):
|
|||
:param handler: handler function
|
||||
"""
|
||||
|
||||
def get_protocols(self) -> Tuple[TProtocol, ...]:
|
||||
return tuple(self.handlers.keys())
|
||||
|
||||
@abstractmethod
|
||||
async def negotiate(
|
||||
self, communicator: IMultiselectCommunicator
|
||||
|
|
Loading…
Reference in New Issue
Block a user