Send/Receive an arbitrary command using a resource client.
The command to execute. Accepts either a Struct or a plain object, which will be converted automatically.
// Plain object (recommended)const result = await doCommandFromClient(doFn, name, { myCommand: { key: 'value' },});// Struct (still supported)const result = await doCommandFromClient( doFn, name, Struct.fromJson({ myCommand: { key: 'value' } }),); Copy
// Plain object (recommended)const result = await doCommandFromClient(doFn, name, { myCommand: { key: 'value' },});// Struct (still supported)const result = await doCommandFromClient( doFn, name, Struct.fromJson({ myCommand: { key: 'value' } }),);
Send/Receive an arbitrary command using a resource client.