fix(infra): export op module (#8769)

This commit is contained in:
forehalo
2024-11-11 03:24:28 +00:00
parent e6ef1dea51
commit 39c65051ac
2 changed files with 3 additions and 2 deletions
+2 -2
View File
@@ -124,10 +124,10 @@ const client = new OpClient(channel);
client.listen();
```
### MessagePort
### MessageChannel
```ts
const { port1, port2 } = new MessagePort();
const { port1, port2 } = new MessageChannel();
const client = new OpClient(port1);
const consumer = new OpConsumer(port2);