ComfyUIClientEvents: {
    close: [];
    connection_error: {
        message: string;
        type: string;
    };
    executed: [Executed];
    executing: [Executing];
    execution_cached: [ExecutionCached];
    execution_error: [ExecutionError];
    execution_interrupted: [ExecutionInterrupted];
    execution_start: [ExecutionStart];
    execution_success: [ExecutionSuccess];
    image_data: [{
        image: ArrayBuffer;
        mime: string;
    }];
    message: [MessageEvent<any>];
    progress: [Progress];
    reconnected: [];
    reconnecting: [];
    status: [Status["status"] | null];
    unhandled: [{
        data: any;
        type: string;
    }];
}

Type declaration

  • close: []

    close client

  • connection_error: {
        message: string;
        type: string;
    }
    • message: string
    • type: string
  • executed: [Executed]
  • executing: [Executing]
  • execution_cached: [ExecutionCached]
  • execution_error: [ExecutionError]
  • execution_interrupted: [ExecutionInterrupted]
  • execution_start: [ExecutionStart]
  • execution_success: [ExecutionSuccess]
  • image_data: [{
        image: ArrayBuffer;
        mime: string;
    }]

    load image data from websocket

  • message: [MessageEvent<any>]

    get all messages

  • progress: [Progress]
  • reconnected: []
  • reconnecting: []
  • status: [Status["status"] | null]
  • unhandled: [{
        data: any;
        type: string;
    }]

    unhandled event message