#[non_exhaustive]pub enum ConnectionEvent {
WSReconnectSuccess,
WSReconnectError(ClientError),
WSReceiveError(Error),
}Expand description
Represents events that are not part of the standard ComfyUI API but are added by the client for additional functionality.
These events are used internally by the client to handle WebSocket connection management and error reporting, allowing the application to respond to connection-related events that aren’t part of the ComfyUI protocol.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
WSReconnectSuccess
Event indicating a successful reconnection to the WebSocket.
Emitted when the client successfully reestablishes a connection after a disconnection.
WSReconnectError(ClientError)
Event containing an error that occurred during a reconnection attempt.
Provides detailed error information about why a reconnection attempt failed, allowing clients to implement appropriate retry or fallback strategies.
WSReceiveError(Error)
Event containing an error that occurred while receiving messages.
Indicates that an error occurred in the WebSocket communication channel while trying to receive messages from the ComfyUI server.