@apollo-office/rpc
v1.0.1
Published
Browser RPC layer for Univer main-thread and worker communication.
Maintainers
Readme
@apollo-office/rpc
@apollo-office/rpc provides a browser-friendly RPC layer for communicating between the main thread and workers or other message-based runtimes.
Package Overview
| Package | UMD global | CSS | Locales | Facade entry |
| --- | --- | :---: | :---: | :---: |
| @apollo-office/rpc | UniverRpc | No | No | No |
Installation
pnpm add @apollo-office/rpc
# or
npm install @apollo-office/rpcKeep all @univerjs/* packages on the same version.
Usage
import { UniverRPCMainThreadPlugin } from '@apollo-office/rpc';
univer.registerPlugin(UniverRPCMainThreadPlugin);Exported plugin classes:
UniverRPCMainThreadPluginUniverRPCWorkerThreadPlugin
