A mux can provide the protocols it responds to

This commit is contained in:
Alex Stokes 2019-10-28 18:43:59 +09:00
parent 07c09d8d9e
commit 11db313b17
No known key found for this signature in database
GPG Key ID: 51CE1721B245C086

View File

@ -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