Skip to main content
torch.js has not been released yet.
torch.js logotorch.js logotorch.js
PlaygroundContact
Login
Documentation
IntroductionType SafetyTensor ExpressionsTensor IndexingEinsumEinopsAutogradTraining a ModelProfiling & MemoryPyTorch MigrationBest PracticesRuntimesPerformancePyTorch CompatibilityBenchmarksDType Coverage
torch.js· 2026
LegalTerms of UsePrivacy Policy
/
/
  1. docs
  2. Spark
  3. spark
  4. SparkCallMessage

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.

Previous
setParentRpc
Next
SparkClientApi