docs: add docstring to start_unix_socket method

This commit is contained in:
hanli 2026-02-28 13:52:15 +08:00
parent 3ef720c87e
commit 4b616bca4f

View File

@ -1221,6 +1221,7 @@ class PromptServer():
call_on_start(scheme, self.address, self.port)
async def start_unix_socket(self, unix_socket, verbose=True):
"""Start the server listening on a Unix domain socket instead of TCP."""
if sys.platform == 'win32':
raise RuntimeError("Unix sockets are not supported on Windows. Please use --listen and --port instead.")