diff --git a/src/util/WorkerEventBus.ts b/src/util/WorkerEventBus.ts index e94b46a..368990b 100644 --- a/src/util/WorkerEventBus.ts +++ b/src/util/WorkerEventBus.ts @@ -47,7 +47,7 @@ export class WorkerClientBus { async request(actionName: T, payload: P): Promise { return new Promise((resolve, reject) => { - const id = nanoid(); + const id = `request://${actionName}/${nanoid()}`; this.idPromiseMap.set(id, [resolve, reject]); this.worker.postMessage({ id,