mirror of
https://github.com/comfyanonymous/ComfyUI.git
synced 2026-03-22 09:33:29 +08:00
docs: add docstring to start_unix_socket method
This commit is contained in:
parent
3ef720c87e
commit
4b616bca4f
@ -1221,6 +1221,7 @@ class PromptServer():
|
|||||||
call_on_start(scheme, self.address, self.port)
|
call_on_start(scheme, self.address, self.port)
|
||||||
|
|
||||||
async def start_unix_socket(self, unix_socket, verbose=True):
|
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':
|
if sys.platform == 'win32':
|
||||||
raise RuntimeError("Unix sockets are not supported on Windows. Please use --listen and --port instead.")
|
raise RuntimeError("Unix sockets are not supported on Windows. Please use --listen and --port instead.")
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user