The intent to send.
sendAsyncIntent({
type: "studio.start.vm",
options: { imageId: id },
}).then(([error, data]) => {
if (error) {
log.error(`Error starting VM: ${error}`);
} else if (data) {
log.warn(`result: ${JSON.stringify(data, null, 2)}`);
}
});
Sends an intent and waits for a response. Returns a promise that resolves with the response or a timeout error after 1 second.
body: undefined.