Skip to content

WORKER_PROTOCOL

The tag every message of this protocol carries. Messages without it are ignored on both sides, so a worker can exchange its own messages too.

Import:

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

Signature:

const WORKER_PROTOCOL: "obsidian-lib-worker-v1"

Type: “obsidian-lib-worker-v1”