Enhance transports

* Support IPv6 schema
* Add transport integration tests
* Add UNIX socket server
This commit is contained in:
Josh Wu
2025-08-18 16:12:48 +08:00
parent 3b8dd6f3cf
commit bb2aa8229d
10 changed files with 238 additions and 45 deletions

View File

@@ -82,7 +82,7 @@ async def open_ws_server_transport(spec: str) -> Transport:
return
return await self.connection.send(packet)
local_host, local_port = spec.split(':')
local_host, local_port = spec.rsplit(':', maxsplit=1)
transport = WsServerTransport()
await transport.serve(local_host, local_port)
return transport