Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
@crazywoola Sorry, I missed one. When comfyui generates pictures, you also need to use websocket connection~
Summary
Fixes #11822
Because not all comfyui are deployed with dify, this part of the code currently has a check for "if comfyui is an https website, it cannot be successfully connected", so the judgment of the http protocol is added. If the comfyui website protocol is http, the websocket connection string is ws://, if the comfyui website protocol is https, then the websocket connection string is wss://.
Tip
Fixes #11822
Screenshots
Before:
This is an error before it is fixed. Regardless of the comfyui website protocol, ws:// will be used for websocket connectivity testing.
After:
This is after the repair, select the websocket connection string according to the comfyui website protocol
Checklist
dev/reformat
(backend) andcd web && npx lint-staged
(frontend) to appease the lint gods