Optional context: Partial<CTX>Protected _disposedProtected _disposed_Protected Optional _invokedProtected _workflowProtected contextStatic defaultProtected _saveProtected buildProtected build_Adds an event listener for the specified event type.
Rest ...args: ArgumentMap<ComfyUIClientEvents>[Extract<T, keyof ComfyUIClientEvents>]Optional options: anyAdds an once event listener for the specified event type.
Rest ...args: ArgumentMap<ComfyUIClientEvents>[Extract<T, keyof ComfyUIClientEvents>]Optional options: anyProtected read_Updates the context with the provided sampler name and returns the current instance of the class for method chaining.
The sampler name to update the context with.
The current instance of the class for method chaining.
Saves the workflow by invoking the workflow instance and enqueuing it.
Optional filename_prefix: stringThe prefix for the saved filename. if not provided, the workflow will be saved as a websocket connection.
Updates the context with the provided scheduler value and returns the current instance of the class for method chaining.
The scheduler value to update the context with.
The current instance of the class for method chaining.
Updates the context with the provided seed value or generates a random seed value if none is provided.
Optional seed: number = ...The seed value to update the context with. If not provided, a random seed value will be generated.
The current instance of the class for method chaining.
Updates the context with the provided width and height, and returns the current instance of the class for method chaining.
The width to update the context with.
The height to update the context with.
The current instance of the class for method chaining.
Protected updateWaits for the workflow to complete and returns the result and the images.
Waits for the workflow to complete and returns the result and the images.
*This function does not rely on WebSocket Events, so it maybe will lose events output by WebSocket node
Static next
pipe to create a workflow