mirror of
https://github.com/varun-r-mallya/py-libp2p.git
synced 2026-02-11 15:40:54 +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
|
:param handler: handler function
|
||||||
"""
|
"""
|
||||||
|
|
||||||
|
def get_protocols(self) -> Tuple[TProtocol, ...]:
|
||||||
|
return tuple(self.handlers.keys())
|
||||||
|
|
||||||
@abstractmethod
|
@abstractmethod
|
||||||
async def negotiate(
|
async def negotiate(
|
||||||
self, communicator: IMultiselectCommunicator
|
self, communicator: IMultiselectCommunicator
|
||||||
|
|||||||
Reference in New Issue
Block a user