Skip to content

WorkerCallMessage

A call from the main thread.

Import:

import type { WorkerCallMessage } from '@mnaoumov/obsidian-lib/worker-protocol';

Signature:

export interface WorkerCallMessage

Properties

PropertyTypeDescription
argumentsreadonly unknown[]The method's arguments.
idnumberThe call id, unique per WorkerComponent.
kind'call'The message kind.
methodstringThe method name.
protocoltypeof WORKER_PROTOCOLThe protocol tag.

Links to this page: