mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-08-11 14:08:55 +08:00
fix(infra): export op module (#8769)
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user