Skip to content

Invoke (websocket) doesn't support multiple returns #13

@jelling

Description

@jelling

When using the web-socket client, the first node that returns an output (message type = executed) terminates the connection:

this.client.on("executed", (data) => {
if (data.prompt_id !== task_id) {
return;
}
this.resolve_to_result(data);
this.executed = true;
resolve(this._result);
done();
}),

But looking at the Comfy UI message types, there wasn't an obvious message to listen for show that all nodes have completed other than perhaps watching the queue count on the status message.

The immediate workaround is to just use the invoke_polling method, which works fine for my purposes. But thought I'd get your thoughts before trying to fix it in my fork.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions