@yeying-community/yeying-client-ts
    Preparing search index...

    Interface CommandMessage<T>

    A message representing a command to be executed by a worker.

    interface CommandMessage<T = any> {
        commandType: CommandType;
        msgId: string;
        payload: T;
        workerId: string;
    }

    Type Parameters

    • T = any

      The type of payload associated with the command.

    Index

    Properties

    commandType: CommandType

    The type of command being sent to the worker.

    msgId: string

    Unique identifier for the message.

    payload: T

    Payload containing additional data needed to execute the command.

    workerId: string

    Unique identifier for the worker that will handle the command.