diff --git a/src/parts/IpcChildWithModuleWorkerAndMessagePort/IpcChildWithModuleWorkerAndMessagePort.ts b/src/parts/IpcChildWithModuleWorkerAndMessagePort/IpcChildWithModuleWorkerAndMessagePort.ts index fe6c2f2..3fe34ee 100644 --- a/src/parts/IpcChildWithModuleWorkerAndMessagePort/IpcChildWithModuleWorkerAndMessagePort.ts +++ b/src/parts/IpcChildWithModuleWorkerAndMessagePort/IpcChildWithModuleWorkerAndMessagePort.ts @@ -22,7 +22,7 @@ export const listen = async () => { } class IpcChildWithModuleWorkerAndMessagePort extends Ipc { - constructor(port:MessagePort){ + constructor(port: MessagePort) { super(port) } @@ -50,6 +50,7 @@ class IpcChildWithModuleWorkerAndMessagePort extends Ipc { override onMessage(callback: any) { this._rawIpc.addEventListener('message', callback) + this._rawIpc.start() } }