Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions ai_diffusion/backend/comfy_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -168,9 +168,9 @@ async def connect(self):
# Retrieve system info
self.device_info = DeviceInfo.parse(await self._get("system_stats"))

# Try to establish websockets connection
# Try to establish websockets connection which support token in server_authorization from settings.json
wsurl = websocket_url(self.url)
wsargs = websocket_args(self._token)
wsargs = websocket_args(settings.server_authorization or self._token)
try:
async with websockets.connect(f"{wsurl}/ws?clientId={self._id}", **wsargs):
pass
Expand Down