mirror of
https://github.com/varun-r-mallya/py-libp2p.git
synced 2025-12-31 20:36:24 +00:00
A mux can provide the protocols it responds to
This commit is contained in:
@ -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
|
||||
|
||||
Reference in New Issue
Block a user