spark.SparkCallMessage
export interface SparkCallMessage {
type: 'call';
/** Function name to call */
method: string;
/** Arguments to pass */
args: unknown[];
/** Request ID for matching response */
id: string;
}type('call')method(string)- – Function name to call
args(unknown[])- – Arguments to pass
id(string)- – Request ID for matching response
Message sent to call a function in the worker.