Skip to content

Commit

Permalink
feature: start message port (#70)
Browse files Browse the repository at this point in the history
  • Loading branch information
levivilet committed Jun 9, 2024
1 parent dc2d1c4 commit abe4fe7
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ export const listen = async () => {
}

class IpcChildWithModuleWorkerAndMessagePort extends Ipc<MessagePort> {
constructor(port:MessagePort){
constructor(port: MessagePort) {
super(port)
}

Expand Down Expand Up @@ -50,6 +50,7 @@ class IpcChildWithModuleWorkerAndMessagePort extends Ipc<MessagePort> {

override onMessage(callback: any) {
this._rawIpc.addEventListener('message', callback)
this._rawIpc.start()
}
}

Expand Down

0 comments on commit abe4fe7

Please sign in to comment.