Controller: SCO implementation

This commit is contained in:
Josh Wu
2023-12-28 14:18:56 +08:00
parent 8ccfc90fe6
commit 8d46bc04d2
8 changed files with 274 additions and 34 deletions

View File

@@ -198,12 +198,13 @@ async def open_transport_or_link(name: str) -> Transport:
"""
if name.startswith('link-relay:'):
logger.warning('Link Relay has been deprecated.')
from ..controller import Controller
from ..link import RemoteLink # lazy import
link = RemoteLink(name[11:])
await link.wait_until_connected()
controller = Controller('remote', link=link)
controller = Controller('remote', link=link) # type:ignore[arg-type]
class LinkTransport(Transport):
async def close(self):