comfy-ui-client
comfy-ui-client copied to clipboard
ssl support
This pull request adds support for connecting to comfy running on an HTTPS server. I chose to use an options parameter object, in case additional options need to be added in the future.
// passing secure:true makes sure the WebSocket connects to wss:// and the api calls happen through https://
// not passing any options defaults to the current behaviour (non-ssl)
const client = new ComfyUIClient(comfyUIUrl, clientId, { secure: true });